BASIC_WINDOW_COVERING class

Begonnen von bborca, 30 August 2014, 08:22:44

Vorheriges Thema - Nächstes Thema

bborca

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

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 

rudolfkoenig

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.