Closed ckohrt closed 3 years ago
Ok, I may have solved it by myself. I have changed the part for one_hot_water in the commands_hpsu.json from: "one_hot_water" : { "name" : "one_hot_water", "command" : "31 00 FA 01 44 00 00", "id" : "190", "divisor" : "1", "writable" : "true", "unit" : "longint", "type" : "value", "value_code" : { "0" : "off", "1" : "on" } to: "one_hot_water" : { "name" : "one_hot_water", "command" : "31 00 FA 01 44 00 00", "id" : "190", "divisor" : "1", "writable" : "true", "unit" : "longint", "type" : "longint", "value_code" : { "0" : "off", "1" : "on" }
Can somebody with more experiance than me check it and change it in the code please?
Hi! Thanks for your great work!
I tried to srite a value to one_hot_water but received the answer root> pyHPSU.py -c one_hot_water:1 -d PYCAN -p /dev/ttyS0 error - type "value" not implemented since yet
Is it planned to be implemented?
Cheers Christian
I think the general request ultimately relates to this kind of improvements
I modified the commands_hpsu.json and the pyHPSU.py to work with type = value.
Should work now. But there is a problem when setting one_hot:water to "0" or "off". I get can bus errors, but I don't know why.
regards
Daniel
Am 07.03.2021 um 11:47 schrieb ckohrt:
45 https://github.com/Spanni26/pyHPSU/pull/45
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Spanni26/pyHPSU/issues/43#issuecomment-792255916, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2I5HGLEXL2F26EUQONGZ3TCNKUVANCNFSM4YW4DHTA.
Hi Daniel, I will never ever set one_hot_water to "0", because
from my side we can clode this issue
just in case somebody thinks that this is working. I tried it today in my automation system. Result: mode was set to 4 but I have no evidence that it really did hot water.... So I check tomorrow again.
I checked the new implementation - it works! Thanks!
Hi! Thanks for your great work! I tried to srite a value to one_hot_water but received the answer root> pyHPSU.py -c one_hot_water:1 -d PYCAN -p /dev/ttyS0 error - type "value" not implemented since yet Is it planned to be implemented? Cheers Christian
I think the general request ultimately relates to this kind of improvements
thanks for linking
Hi! Thanks for your great work!
I tried to srite a value to one_hot_water but received the answer root> pyHPSU.py -c one_hot_water:1 -d PYCAN -p /dev/ttyS0 error - type "value" not implemented since yet
Is it planned to be implemented?
Cheers Christian