Example for node 'node-red-contrib-xiaomi-smart-home'

Example for node 'node-red-contrib-xiaomi-smart-home'.
To display all readings switch on message comple object.

[{"id":"a32564c8.dc8178","type":"xiaomi-smart-home","z":"1f0ae976.4366b7","name":"You name","password":"you password","gateway":true,"switch":true,"cube":true,"sensor_ht":true,"motion":true,"magnet":true,"x":332,"y":163,"wires":[["2b7de8a0.f9ca78"]]},{"id":"cb828470.49b748","type":"inject","z":"1f0ae976.4366b7","name":"","topic":"","payload":"{\"model\": \"gateway\", \"sid\": \"you sid\", \"command\": \"rgb\", \"value\": you value, example: 4286578816}","payloadType":"json","repeat":"","crontab":"","once":false,"x":139,"y":164,"wires":[["a32564c8.dc8178"]]},{"id":"2b7de8a0.f9ca78","type":"debug","z":"1f0ae976.4366b7","name":"","active":true,"console":"false","complete":"true","x":514,"y":161,"wires":[]},{"id":"4b425504.d7d7cc","type":"comment","z":"1f0ae976.4366b7","name":"to display all readings switch on message comple object","info":"","x":487,"y":105,"wires":[]}]
ratatyq

Flow Info

created 2 weeks, 2 days ago

Node Types

Core
  • comment (x1)
  • debug (x1)
  • inject (x1)
Other

Tags

  • xiaomi
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option