@lpt2007
Have you set up your RFXcom properly.
The door/motion sensors use RF Detector Node not the RF Lights mode.
Use a RF Detector to Debug to find the codes of the door sensors.
Then you can enter the right code.
The Server is the IP address of the MQTT Broker.
If you have set a user password…
The in Home Assistant use.
binary_sensor:
- platform: mqtt
name: "Hall Motion Sensor"
state_topic: "hall/motion/state"
payload_on: "1"
payload_off: "0"
qos: 1
retain: true
You can import this to Node Red.
[{"id":"5dd7b124.4d7a3","type":"mqtt out","z":"283193a4.21818c","name":"Publish Motion","topic":"sensor/hall/state","qos":"0","retain":"false","broker":"54a8926b.02f55c","x":940,"y":1600,"wires":[]},{"id":"89dec637.8c3688","type":"switch","z":"283193a4.21818c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"Motion","vt":"str"},{"t":"eq","v":"Alarm","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":530,"y":1600,"wires":[["be5c2772.c56428"],["4137a067.085c6"]]},{"id":"eb420734.f856a8","type":"rfx-detector-in","z":"283193a4.21818c","name":"Kitchen Top Window","port":"a5149ee1.e9d96","topicSource":"single","topic":"X10_DOOR/0x39AC00","x":330,"y":1600,"wires":[["89dec637.8c3688"]]},{"id":"be5c2772.c56428","type":"change","z":"283193a4.21818c","name":"Change Motion","rules":[{"t":"change","p":"payload","pt":"msg","from":"Motion","fromt":"str","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":1560,"wires":[["5dd7b124.4d7a3","602bd7c.05c1028"]]},{"id":"4137a067.085c6","type":"change","z":"283193a4.21818c","name":"Change Alarm","rules":[{"t":"change","p":"payload","pt":"msg","from":"Alarm","fromt":"str","to":"1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":1620,"wires":[["5dd7b124.4d7a3","602bd7c.05c1028"]]},{"id":"602bd7c.05c1028","type":"debug","z":"283193a4.21818c","name":"Debug MQTT Publish","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":980,"y":1660,"wires":[]},{"id":"a9a9cd48.07eac","type":"inject","z":"283193a4.21818c","name":"","topic":"","payload":"Motion","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":310,"y":1520,"wires":[["89dec637.8c3688"]]},{"id":"2758216c.89522e","type":"inject","z":"283193a4.21818c","name":"","topic":"","payload":"Alarm","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":310,"y":1560,"wires":[["89dec637.8c3688"]]},{"id":"2c5ca297.9534fe","type":"mqtt in","z":"283193a4.21818c","name":"","topic":"sensor/hall/state","qos":"2","broker":"54a8926b.02f55c","x":380,"y":1740,"wires":[["44c0ba85.828b74"]]},{"id":"44c0ba85.828b74","type":"debug","z":"283193a4.21818c","name":"Debug MQTT FeedBack","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":650,"y":1740,"wires":[]},{"id":"c73a92e6.e10b1","type":"comment","z":"283193a4.21818c","name":"Testers","info":"","x":170,"y":1540,"wires":[]},{"id":"b89a26bc.6e7c18","type":"comment","z":"283193a4.21818c","name":"Test Feedback","info":"","x":520,"y":1700,"wires":[]},{"id":"54a8926b.02f55c","type":"mqtt-broker","z":"","name":"MQTT Broker","broker":"192.168.85.5","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""},{"id":"a5149ee1.e9d96","type":"rfxtrx-port","z":"","port":"/dev/ttyUSB0","rfyVenetianMode":"EU"}]
Hope this helps…