maxwellhadley / node-red-contrib-rfxcom

node-RED nodes to access an RFXtrx433 transceiver
BSD 2-Clause "Simplified" License
22 stars 13 forks source link

Add Lightning5 Kangtai Cotech payload for rfx-lights-in #107

Closed erljef closed 4 years ago

erljef commented 4 years ago

I'm using node-red-contrib-rfxcom together with Home Assistant and the message that is created when I use one of my remotes with the KANGTAI subtype doesn't contain the command, making it impossible to update the switch in Home Assistant based on what the remote does.

This PR adds the On and Off commands to the message payload following the same pattern the other subtypes use.

Thank you for this library, it neatly solves a bunch of my home automation cases using the RFXtrx433.

maxwellhadley commented 4 years ago

I have merged your PR, and subsequently modified the change to handle the Kangtai group on & off commands as well. Because the BBSB & CONRAD types have the same command set, I have combined the switch cases.

Thanks for your contribution!