Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96121

Ikea Motion sensor zigbee2mqtt Node red

$
0
0

@Bas_Fpv wrote:

Guys, why my lamp is not going OFF when it see not motion?
I don’t understand what i am doing wrong as a NOOBB

[{"id":"e0bfffe7.2ae15","type":"mqtt in","z":"293e23d8.ee488c","name":"Motion HK","topic":"zigbee2mqtt/0x680ae2fffe36ddc8","qos":"1","datatype":"auto","broker":"c1374cde.87a82","x":90,"y":120,"wires":[["3d870f7f.6893c"]]},{"id":"3d870f7f.6893c","type":"function","z":"293e23d8.ee488c","name":"","func":"var x = msg.payload.occupancy;\n\nif( x === true){\n    msg.payload = {\"state\": \"ON\"};\n}\nif(x === false){\n    msg.payload = {\"state\": \"OFF\"};\n}\nreturn msg;","outputs":1,"noerr":0,"x":250,"y":120,"wires":[["d479f6ec.c348a8"]]},{"id":"189f41b5.c5059e","type":"mqtt out","z":"293e23d8.ee488c","name":"Ledstrip Hobbykamer","topic":"switch_1/cmnd/POWER","qos":"2","retain":"true","broker":"c1374cde.87a82","x":600,"y":120,"wires":[]},{"id":"17c93410.7f2b1c","type":"debug","z":"293e23d8.ee488c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":570,"y":200,"wires":[]},{"id":"d479f6ec.c348a8","type":"switch","z":"293e23d8.ee488c","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":410,"y":120,"wires":[["189f41b5.c5059e","17c93410.7f2b1c"]]},{"id":"c1374cde.87a82","type":"mqtt-broker","z":"","name":"Hassio","broker":"192.168.2.23","port":"1883","clientid":"Admin","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>