Spanni26 / pyHPSU

Python Script to read and send commands to a Rotex HPSU
26 stars 15 forks source link

one_hot_water not implemented? #43

Closed ckohrt closed 3 years ago

ckohrt commented 3 years ago

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

ckohrt commented 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?

segaura commented 3 years ago

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

ckohrt commented 3 years ago

45

Spanni26 commented 3 years ago

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.

ckohrt commented 3 years ago

Hi Daniel, I will never ever set one_hot_water to "0", because

  1. the pump SHALL do one time hot water generation up to the defined temperature and stops automatically.
  2. this is not possible from the Daikin Control GUI There is just no reason to do so. Maybe the pump just doesn't accept "0".
ckohrt commented 3 years ago

from my side we can clode this issue

ckohrt commented 3 years ago

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.

ckohrt commented 3 years ago

I checked the new implementation - it works! Thanks!

ckohrt commented 3 years ago

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