maxwellhadley / node-red-contrib-rfxcom

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

rfx-lights-in responds to addresses not matching specified pattern #13

Closed maxwellhadley closed 7 years ago

maxwellhadley commented 7 years ago

From the Node-RED mailing list https://groups.google.com/d/msg/node-red/TzoFKsiQnTQ/YSsVs0N7AQAJ

Hello, I am new to learning node-red. Currently I work with rfxcom and I can not solve a problem. Could you help me please. I use several CHACON door sensor and the problem is that as soon as one of them is open, node red does not make the difference and sends me full of messages “on / off” although I told him “only listen addresses matching a pattern” for example “AC/0x00ECFF7A/2” or “AC/0x00EEFFC06/10”. What I want is that if the front door is open it does not tell me,the gate, the window and the front door is open. I can not differentiate the state of the sensors. More I use rfx-lights, because when I use rfx-detector this does not work. Thank you for your help, Fabrice

maxwellhadley commented 7 years ago

This happens because the unitcode in the address pattern to match contains a 0 - in the example above this is "AC/0x00EEFFC06/10". Due to a bug, this is being incorrectly interpreted as a group code, i.e. meaning that the node should respond to all devices with the same ID. A second, unrelated bug causes the ID part of the pattern to be ignored, as well as the unitcode. Hence the node responds to all addresses using the "AC" protocol.

This will be fixed