Skip to content

Component

Duco Miner Component

Performance Impact on ESP8266

Due to the single-core architecture and hardware limitations of the ESP8266, running the Duino-Coin miner can significantly increase the response time (latency) of other components.

Since mining is CPU-intensive and shares a single execution thread, functions like web server handling, sensor updates, or Wi-Fi commands may experience noticeable delays. For a smoother multi-tasking experience, consider using an ESP32.

Duco Miner Component

external_components:
  - source:
      type: git
      url: https://github.com/andrewjswan/duco-miner
      ref: main
    components: [duco]

duco:
  id: miner
  username: "${duco_user}" (1)
  key: "${duco_key}" (2)
  name: "${worker_name}" (3)
  1. Username
  2. Mining key
  3. Miner name (leave blank for default)

Mining key

Please note that the mining key is not your password. It's a separate passphrase that you set during registration (or set in the wallet).

Using Secrets

Username, Key can be substituted using Secrets file secrets.yaml.

Example

duco:
  username: !secret my_duco_username
  key: !secret my_duco_mining_key

Danger

In order to keep your secrets safe, the secrets.yaml file should NOT be checked into git or any other version control system.

Parameters reference

  • id (optional, ID): Manually specify the identifier used for code generation and in service definitions.

  • username (required, string): Duino-Coin username.

  • key (required, string): Duino-Coin mining key.

  • name (optional, string): Custom miner name / identifier. Defaults to Auto.

  • temperature (optional, ID): Temperature sensor ID for transmission to the Duino IoT.

  • humidity (optional, ID): Humidity Sensor ID for transmission to the Duino IoT.

  • cpu_temperature (optional, ID): CPU Temperature sensor ID for transmission to the Duino IoT.

  • esphome (optional, boolean): Add ESPHome version for transmission to the Duino IoT. Defaults to false.

  • enable_mimicry (optional, boolean): Identify yourself to the server as an official client . Defaults to false.

Duco Sensors

Duco Miner Sensors

sensor:
  - platform: duco
    hashrate:
      name: "Hashrate"
    accepted_shares:
      name: "Accepted shares"
    total_shares:
      name: "Total shares"
    difficulty:
      name: "Difficulty"
    accept_rate:
      name: "Accept rate"
    share_rate:
      name: "Share rate"
    ping:
      name: "Ping"

Duco Miner Binnary Sensors

binary_sensor:
  - platform: duco
    status:
      name: "Miner status"

Duco Miner Text Sensors

text_sensor:
  - platform: duco
    cores_status:
      name: "Cores status"
    pool:
      name: "Current Pool"

Cores status

  • ~ - Task problem
  • - - Job problem
  • X - A significant number of errors in the job tasks
  • * - No problem