Skip to content

Partially supported miner: Antminer S19 Hydro (VNISH) #419

@SatMeNow

Description

@SatMeNow

Describe the bug
Miner is detected as partially supported with warning: "Partially supported miner found: Antminer S19 Hydro, type: MinerTypes.VNISH, please open an issue with miner data and this model on GitHub"

To Reproduce

  1. Use pyasic to detect an Antminer S19 Hydro miner (with installed VNISH firmware)
  2. Observe the warning in logs
  3. Attempt to use the miner in Home Assistant hass-miner integration
  4. Get error: 'NoneType' object cannot be interpreted as an integer due to expected_hashboards being None

Desktop (please complete the following information):

  • OS: Linux
  • Version: Ubuntu (Home Assistant environment)

Miner Information (If applicable):

  • Manufacturer: Bitmain
  • Type: S19 Hydro
  • Firmware Type: VNISH
  • Firmware Version: Unknown

Additional context
I applied this fix (sensor.py, line 151) to get it working temporarily:

    sensors = []
    for s in coordinator.data["miner_sensors"]:
        sensors.append(_create_miner_entity(s))
    for board_num in coordinator.data["board_sensors"]:
        for s in ["board_temperature", "chip_temperature", "board_hashrate"]:
            sensors.append(_create_board_entity(board_num, s))
    for fan_num in coordinator.data["fan_sensors"]:
        for s in ["fan_speed"]:
            sensors.append(_create_fan_entity(fan_num, s))
    async_add_entities(sensors)

Before the fix i got the following entities:

  • switch.active
  • number.power_limit

Now i get the following entities:

  • switch.active
  • sensor.efficiency
  • sensor.hashrate
  • sensor.ideal_hashrate
  • sensor.miner_consumption
  • number.power_limit
  • sensor.power_limit
  • sensor.temperature

The hashrate and ideal_hashrate have invalid units.
Exemple: 22.283.303.000.000,0 TH/s (H/s would be fine)

The temperature entity does not show a value (0 all the time).
My best guess would be a format missmatch hence VNISH gui shows values like 21-30°C.

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