Skip to content

Update request: DG-Home1 still partially supported in pyasic 0.79.0 #428

@purcell-lab

Description

@purcell-lab

DG-Home1 still partially supported (pyasic 0.79.0)

Following up from #311 which was closed as completed after b-rowan noted "Coming in next version release", however the issue persists in pyasic 0.79.0.

Environment

mark@penguin:~$ ./path/to/venv./bin/python3 ./get-miners.py 
pyasic.__version__
0.79.0
/home/mark/path/to/venv./lib/python3.11/site-packages/pyasic/miners/factory.py:1260: UserWarning: Partially supported miner found: DG-Home1, type: MinerTypes.ELPHAPEX, please open an issue with miner data and this model on GitHub (https://github.com/UpstreamData/pyasic/issues).
  warnings.warn(
[Elphapex (Stock): 192.168.86.83]

API Data

The following API responses were provided in #311 by @purcell-lab and are reproduced here for convenience.

GET /cgi-bin/stats.cgi

{
  "STATUS": {
    "STATUS": "S",
    "when": 120235,
    "timestamp": 1751782188,
    "api_version": "1.0.0",
    "Msg": "stats"
  },
  "INFO": {
    "miner_version": "DG-Home1_V1.0.5",
    "CompileTime": "",
    "dev_sn": "XXXXXXXX",
    "type": "DG-Home1",
    "hw_version": "DG-Home1_HW_V1.0"
  },
  "STATS": [
    {
      "rate_unit": "MH/s",
      "elapsed": 119914,
      "rate_30m": 0,
      "rate_5s": 1459.78,
      "hwp_total": 0.11550000000000001,
      "rate_ideal": 2160,
      "chain": [
        {
          "freq_avg": 0,
          "index": 0,
          "sn": "",
          "temp_chip": ["", "", "", ""],
          "rate_15m": 0,
          "hw": 0,
          "temp_pcb": [47, 46, 67, 66],
          "failrate": 0,
          "asic": "ooooooooo oooooooo oooooooo oooooooo oooo",
          "rate_real": 0,
          "asic_num": 0,
          "temp_pic": [47, 46, 67, 66],
          "rate_ideal": 0,
          "hashrate": 0
        },
        {
          "freq_avg": 0,
          "index": 1,
          "sn": "",
          "temp_chip": ["", "", "", ""],
          "rate_15m": 0,
          "hw": 0,
          "temp_pcb": [47, 46, 67, 66],
          "failrate": 0,
          "asic": "ooooooooo oooooooo oooooooo oooooooo oooo",
          "rate_real": 0,
          "asic_num": 0,
          "temp_pic": [47, 46, 67, 66],
          "rate_ideal": 0,
          "hashrate": 0
        },
        {
          "freq_avg": 0,
          "index": 2,
          "sn": "",
          "temp_chip": ["", "", "", ""],
          "rate_15m": 0,
          "hw": 0,
          "temp_pcb": [47, 46, 67, 66],
          "failrate": 0,
          "asic": "ooooooooo oooooooo oooooooo oooooooo oooo",
          "rate_real": 0,
          "asic_num": 0,
          "temp_pic": [47, 46, 67, 66],
          "rate_ideal": 0,
          "hashrate": 0
        },
        {
          "freq_avg": 64000,
          "index": 3,
          "sn": "11HY251116N300885H11LD22",
          "temp_chip": ["50812", "49125", "46812", "50750"],
          "eeprom_loaded": true,
          "rate_15m": 2066,
          "hw": 120,
          "temp_pcb": [47, 46, 67, 66],
          "failrate": 0.050000000000000003,
          "asic": "ooooooooo oooooooo oooooooo oooooooo oooo",
          "rate_real": 2152.98,
          "asic_num": 120,
          "temp_pic": [47, 46, 67, 66],
          "rate_ideal": 2160,
          "hashrate": 1827.6500000000001
        }
      ],
      "rate_15m": 2066,
      "chain_num": 4,
      "fan": ["1260", "1200", "1200", "3300"],
      "rate_avg": 2152.98,
      "fan_num": 4
    }
  ]
}

GET /cgi-bin/pools.cgi

{
  "STATUS": {
    "STATUS": "S",
    "when": 121973,
    "timestamp": 1751783926,
    "api_version": "1.0.0",
    "Msg": "pools"
  },
  "Device Total Rejected": 218,
  "POOLS": [
    {
      "diffs": 0,
      "diffr": 260858,
      "index": 0,
      "user": "XXX.worker1",
      "lsdiff": 260858,
      "lstime": "00:00:07",
      "diffa": 260858,
      "accepted": 13371,
      "diff1": 0,
      "stale": 0,
      "diff": "",
      "rejected": 218,
      "status": "Alive",
      "getworks": 13589,
      "priority": 0,
      "url": "stratum+tcp://XXX.mining-dutch.nl:8888"
    },
    {
      "diffs": 0,
      "diffr": 0,
      "index": 1,
      "user": "XXX.worker1",
      "lsdiff": 0,
      "lstime": "",
      "diffa": 0,
      "accepted": 0,
      "diff1": 0,
      "stale": 0,
      "diff": "",
      "rejected": 0,
      "status": "Standby",
      "getworks": 0,
      "priority": 1,
      "url": "stratum+tcp://XXX.mining-dutch.nl:8888"
    },
    {
      "diffs": 0,
      "diffr": 0,
      "index": 2,
      "user": "XXX.worker1",
      "lsdiff": 0,
      "lstime": "",
      "diffa": 0,
      "accepted": 0,
      "diff1": 0,
      "stale": 0,
      "diff": "",
      "rejected": 0,
      "status": "Standby",
      "getworks": 0,
      "priority": 2,
      "url": "stratum+tcp://XXX.mining-dutch.nl:8888"
    }
  ],
  "Device Rejected%": 1.6000000000000001,
  "Device Total Work": 13589,
  "INFO": {
    "miner_version": "DG-Home1_V1.0.5",
    "CompileTime": "",
    "dev_sn": "15HY251114N301525C12B",
    "type": "DG-Home1",
    "hw_version": "DG-Home1_HW_V1.0"
  }
}

Additional context

  • miner.rpc is None for this miner, so await miner.rpc.devdetails() cannot be called (as requested in the original issue).
  • Firmware version: DG-Home1_V1.0.5, HW version: DG-Home1_HW_V1.0
  • Only one of the 4 chains (index 3) is active/populated; chains 0–2 return empty/zero data.

Happy to test any branch or PR and provide additional dumps if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions