ioBroker / ioBroker.wolf

Connect WOLF heating, solar and domestic ventilation
MIT License
25 stars 16 forks source link

encoding for DPT10 #89

Closed gkressel closed 1 year ago

gkressel commented 1 year ago

Hey guys,

thanks for working in this adapter. I want to ask if it's possible to implement an encoding for DPT10 (timeofDay). For my CWL-2 I need to set the end time for activatiing the power mode. Based on the documentation from wolf it's mandatory to set all 3 parameters (DP153, 155 and 157) to activate.

When i try to set the values i got the message that the encoding is not supported. grafik

If the endtime is already larger than the current timestamp, i can activate the mode.

Thanks in advance!

Best regards, Gunnar

Apollon77 commented 1 year ago

Does anyone know the definiton/spefication?

gkressel commented 1 year ago

grafik

There is already a decoder for the DPT 10 values.

Apollon77 commented 1 year ago

Thank you, I think the more interesting question is how to allow users to set this. Could be setting a date object as the "encoded" one, but then we only take out weekday and time. I can give it a try ... hhhmmm ... how we should encode "no day" ? .... hhmm....

gkressel commented 1 year ago

as in the wolf documentation is mentioned, they will only consider the hour and minute from this DPT. Therefore it should be fine to use the same logic as in the decoding part. If "time to set" > now --> use today else tomorrow. The use case where these DPTs are needed is to enable the building protection or the power mode. In both cases it's mandatory to set the start and end times as well as the dates represented by DPT 154 - 157 and the switch DPT 153.

Apollon77 commented 1 year ago

Ok, then here you go ... Please try GitHub version ...