I have got me alarm system all working with my Sonoff RF Bridge eg setting of siren and receiving sensor inputs.
However I just wanted to put a Xiaomi Switch in place of the Cheapy 443Mhz door bell from big box store I currently have in operation so I can do things like send alerts to my mobile phone when I’m out.
So here is what I have done so far.
- Copy and pasted working nodes from my alarm and changed the RF code.
This is the code captured from the currently working door bell button
15:20:14 MQT: tele/RF_Bridge/RESULT = {"RfReceived":{"Sync":5430,"Low":510,"High":230,"Data":"777505","RfKey":"None"}}
And here is my NodeRed code for this particular set of nodes to operate the door bell
[{"id":"a8fa066.f85e4f8","type":"trigger-state","z":"6effacd4.c3c434","name":"Door Bell","server":"31325ed1.2c0d02","entityid":"binary_sensor.switch_158d0002e91f80","entityidfiltertype":"exact","debugenabled":false,"constraints":[],"constraintsmustmatch":"all","outputs":2,"customoutputs":[],"outputinitially":false,"state_type":"str","x":840,"y":2000,"wires":[["99696436.c77cc8"],[]]},{"id":"99696436.c77cc8","type":"switch","z":"6effacd4.c3c434","name":"Click Type","property":"payload.event.click_type","propertyType":"msg","rules":[{"t":"eq","v":"single","vt":"str"},{"t":"eq","v":"double","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1010,"y":2000,"wires":[["44c5ab71.53ec14"],[]]},{"id":"44c5ab71.53ec14","type":"change","z":"6effacd4.c3c434","name":"Sound BELL","rules":[{"t":"set","p":"payload","pt":"msg","to":"#777505","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1009,"y":2057,"wires":[["baa90a53.6ca0b8"]]},{"id":"baa90a53.6ca0b8","type":"mqtt out","z":"6effacd4.c3c434","name":"","topic":"cmnd/RF_Bridge/RFCODE","qos":"1","retain":"","broker":"cb4950af.44e39","x":1279,"y":2061,"wires":[]},{"id":"2979cdaf.00ad52","type":"inject","z":"6effacd4.c3c434","name":"Manual Door Bell","topic":"","payload":"#777505","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1019,"y":2111,"wires":[["baa90a53.6ca0b8"]]},{"id":"31325ed1.2c0d02","type":"server","z":"","name":"HA - Default","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true},{"id":"cb4950af.44e39","type":"mqtt-broker","z":"","name":"myMQTT","broker":"192.168.8.29","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
I am not too worried about the rest of the circuit, I have just been focusing on the inject node and the mqtt node.
Is it because the Sync, High, Low are not being passed. I don’t pass them out on any other working circuit I currently have. I tried for last hour to try and find a post that might help but not having much luck.