-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant set up the power consumption with HomeAssistant #355
Comments
Gonna do some testing with this. My guess is something about the gRPC return changed in a recent version and thats messing up the function. |
Hi. Thank you for your quite fast reply! |
Same thing for a regular S19. cant set wattage. |
When you say "regular S19", does that mean stock firmware? Stock Antminer firmware doesn't support wattage setpoints. |
no sorry its running Braiins os+ Version:
2024-04-02-0-0de0f2f0-24.03.1-plus
its just a S19 not a pro or to or any of the other special names after S19. So good chance it will be the same issue and fix as the one from this thread.
|
My BCB100 has no miner to connect to, so I've kindof been flying blind here, but it appears for some reason my authentication is no longer working, even though literally nothing has changed? Possible it's related to the lack of miner thing, but your machines are able to gather data still, correct? All functionality on newer miners goes through gRPC, so if that's the issue, then it would affect all the calls. |
@b-rowan Related to your pre-release on #357 (comment) - how can i test your made changes in HACS hass-miner ? |
Just released v1.1.10rc1, you can test with that. Just enable pre-releases when selecting the version and it should let you pick that version. Not sure it will fix it, and lmk if you have other issues, but its worth a shot. |
Old text from a few minutes ago: "I'm sorry to inform you that the problem is not solved with the update :(" New answer from now: In any case, thank you very much first of all! |
But it's working some of the time? If so it might just need a cool down of some kind, usually it takes a bit for the miner to boot into the new wattage, it depends. There are some weird edge cases with BraiinsOS, such as if the miner has all working boards it shouldn't need to reboot, but if there is anything wrong it will reboot, etc. |
Yes, right. Sometime it worked. If i change the value and the message will not diplayed, the change take effect. When it is working, the update process on the Miner WebUI is quite fast. |
Interesting. As long as you're cross referencing with the web UI, I assume it should work anytime that is responsive, but I don't know what the actual gRPC error code is... there may be a "Not Ready" code that I'm getting back, and I might be able to handle that by just resending. |
It's working with the newest version if you set the values in the allowed range. |
My Miner is an "Antminer S19J Pro Plus NoPic" with an integrated "Braiins BCB 100".
The problem is that I can't set the miner's power.
If i move the slider for that, i get an error and nothing happened in BaiinsOS+.
Same with Autotuning active and deactive.
Hope you can give me hint what i'm doing the wrong way.
Greetings
I'm using the latest version v1.1.9
Message displayed in HomeAssistant: "Fehler beim Aufrufen des Diensts number/set_value. Failed to set wattage."
Log after changing the wattage:
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 968, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1067, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1015, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 606, in state
raise ValueError(
ValueError: Invalid datetime: sensor.last_lightning_strike has timestamp device class but provides state 2024-05-02T17:04:39+02:00:<class 'str'> resulting in ''str' object has no attribute 'tzinfo''
2024-05-04 17:35:12.907 WARNING (MainThread) [homeassistant.components.mqtt.light.schema_json] Invalid color mode 'hs' received for entity light.licht_ug_vorrat
2024-05-04 17:35:13.080 ERROR (Recorder) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 595, in state
if value.tzinfo is None:
^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'tzinfo'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 968, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1067, in __async_calculate_state
state = self._stringify_state(available)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1015, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 606, in state
raise ValueError(
ValueError: Invalid datetime: sensor.last_lightning_strike has timestamp device class but provides state 2024-05-02T17:04:39+02:00:<class 'str'> resulting in ''str' object has no attribute 'tzinfo''
`
The text was updated successfully, but these errors were encountered: