You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
today i discovered that 2 of my thermostats have low battery's but in homeassistant the battery_alarm attribute stay's 0
also checked where the fault is (i think) after some reverse engineering of the uponor api found;
That the formula for battery alarm is "101 + (500 * "controller") + (40 * "thermostat") which is correct (if im reading correct your using an offset of 80 + address 21 = 101) in the custom_components/uhomeuponor/uponor_api/const.py
i think the script is trying to read property 85 of the address defined by the formula above. but it needs to read property 662.
i have no python skills to make a pull request to you git... i've checked it via a shell script, with the following line:
Hi,
today i discovered that 2 of my thermostats have low battery's but in homeassistant the battery_alarm attribute stay's 0
also checked where the fault is (i think) after some reverse engineering of the uponor api found;
That the formula for battery alarm is
"101 + (500 * "controller") + (40 * "thermostat")
which is correct (if im reading correct your using an offset of 80 + address 21 = 101) in the custom_components/uhomeuponor/uponor_api/const.pyi think the script is trying to read property 85 of the address defined by the formula above. but it needs to read property 662.
i have no python skills to make a pull request to you git... i've checked it via a shell script, with the following line:
battery=$(curl -s "http://$uhomeip/api" --data-binary '{"jsonrpc": "2.0", "id": 8, "method": "read", "params": {"objects": [{"id": "'$battery'", "properties": {"662": {}}}]}}' | jq -r '.result.objects[0].properties["662"].value')
which gave me the battery warning on the empty thermostats.
is it possible without to many hassle to add this in the code?
thanx!
The text was updated successfully, but these errors were encountered: