FHEM Forum

FHEM - Hausautomations-Systeme => ZWave => Thema gestartet von: bborca am 30 August 2014, 08:22:44

Titel: BASIC_WINDOW_COVERING class
Beitrag von: bborca am 30 August 2014, 08:22:44
Hello,

Attached an attempt to implement the BASIC_WINDOW_COVERING class. Tested and working for me with FIBARO FGR221 controllers. Unfortunately my set up does not provide the positioning information, therefore I am force to use this simplified instance.

For the implementation I have used the info from this manual:  https://github.com/yepher/RaZBerry/blob/master/docs/SDS11060-7%20%20Z-Wave%20Command%20Class%20Specification.pdf (https://github.com/yepher/RaZBerry/blob/master/docs/SDS11060-7%20%20Z-Wave%20Command%20Class%20Specification.pdf)

When modifying the 10_ZWave.pm, I have attempted to follow examples on this forum, but I am not sure I did everything right. Especially the state modification part is missing, because I am not familiar with how it how it works. Any advice on how to cover that wold be greatly appreciated.

Regards,
Bogdan 
Titel: Antw:BASIC_WINDOW_COVERING class
Beitrag von: rudolfkoenig am 30 August 2014, 09:37:43
Thanks for the patch, I applied it, but I cannot test it myself.

The state should be modified automatically for the set commands.

For interpreting data sent by the device you have to implement a parse entry for the corresponding Zwave-Class, where the key in the hash is the data sent by the device (in hex, with regexps) and the value of this key is of the form <readingname>:<readingvalue>. If the <readingname> is state, than the state of the device will be set.