gilsonmandalogo / hacs-minerstat

Minerstat mining hashrate.
MIT License
4 stars 5 forks source link

Error while setting up hacs-minerstat platform for sensor #5

Closed danielfinans closed 1 year ago

danielfinans commented 3 years ago

2021-06-21 23:26:08 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up hacs-minerstat platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 250, in _async_setup_platform await asyncio.shield(task) File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/hacs-minerstat/sensor.py", line 27, in setup_platform add_devices([Minerstat(hass, config)]) File "/config/custom_components/hacs-minerstat/sensor.py", line 37, in init self.update() File "/config/custom_components/hacs-minerstat/sensor.py", line 60, in update self._status = data[self._config[CONF_RIG_NAME]]["info"]["status"] KeyError: 'NAME-OF-RIG (edited)'

Kirbo commented 3 years ago

See your miners name here: https://api.minerstat.com/v2/stats/accessKeyHere/

The Rig name is case sensitive.