Skip to content

Instantly share code, notes, and snippets.

@ronnyandre
Created March 10, 2020 10:22
Show Gist options
  • Save ronnyandre/eb4b6468ab664e26b3ef83f3faed91b4 to your computer and use it in GitHub Desktop.
Save ronnyandre/eb4b6468ab664e26b3ef83f3faed91b4 to your computer and use it in GitHub Desktop.
Example deConz event flow in Home Assistant
[{"id":"4cb2d8d4.f1ff18","type":"tab","label":"deCONZ Events","disabled":false,"info":""},{"id":"cfeb8db3.53c14","type":"server-events","z":"4cb2d8d4.f1ff18","name":"Event","server":"3e887f6c.e8ac3","event_type":"deconz_event","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"x":150,"y":140,"wires":[["425b6f10.008f3"]]},{"id":"425b6f10.008f3","type":"switch","z":"4cb2d8d4.f1ff18","name":"Get Device ID","property":"payload.event.unique_id","propertyType":"msg","rules":[{"t":"eq","v":"00:15:8d:00:01:e7:94:de","vt":"str"},{"t":"eq","v":"00:15:8d:00:02:9a:93:e4","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":320,"y":140,"wires":[["2b31e17a.901bfe"],["73e0606f.383dc"]]},{"id":"2b31e17a.901bfe","type":"switch","z":"4cb2d8d4.f1ff18","name":"Event Type","property":"payload.event.event","propertyType":"msg","rules":[{"t":"eq","v":"1002","vt":"str"},{"t":"eq","v":"1004","vt":"str"},{"t":"eq","v":"1001","vt":"str"},{"t":"eq","v":"1003","vt":"str"}],"checkall":"true","repair":false,"outputs":4,"x":550,"y":140,"wires":[["6d27ec7e.f9a914"],[],[],[]]},{"id":"532dfc99.7be464","type":"comment","z":"4cb2d8d4.f1ff18","name":"Device ID","info":"Sjekker hvilken device som blir trykket.","x":300,"y":80,"wires":[]},{"id":"2b0ab960.1c7426","type":"comment","z":"4cb2d8d4.f1ff18","name":"Smart Switch","info":"Hvis Smart Switch (én knapp)\n\nAction Event Value\n\nSingle Click 1002\nDouble Click 1004\nHold 1001\nRelease 1003","x":550,"y":80,"wires":[]},{"id":"6d27ec7e.f9a914","type":"api-call-service","z":"4cb2d8d4.f1ff18","name":"","server":"3e887f6c.e8ac3","version":1,"debugenabled":false,"service_domain":"light","service":"toggle","entityId":"light.nattlampe_bendik","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":800,"y":180,"wires":[[]]},{"id":"bddd8b40.0ce4d8","type":"comment","z":"4cb2d8d4.f1ff18","name":"Mi Cube","info":"Mi Cube #1","x":540,"y":260,"wires":[]},{"id":"73e0606f.383dc","type":"switch","z":"4cb2d8d4.f1ff18","name":"Event Type","property":"payload.event.event","propertyType":"msg","rules":[{"t":"eq","v":"","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":550,"y":300,"wires":[[]]},{"id":"3e887f6c.e8ac3","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":false,"rejectUnauthorizedCerts":false,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment