Guest User

Untitled

a guest
Dec 29th, 2017
170
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [{"id":"23462cfb.475464","type":"switch","z":"3933a201.bdd7ae","name":"button_click","property":"payload.event.click_type","propertyType":"msg","rules":[{"t":"eq","v":"single","vt":"str"},{"t":"eq","v":"hold","vt":"str"}],"checkall":"true","outputs":2,"x":534.2475891113281,"y":364.9352340698242,"wires":[["9dd96177.eb1e9"],[]],"outputLabels":["single","hold"]},{"id":"cdc0d0df.b3f62","type":"switch","z":"3933a201.bdd7ae","name":"switch_158d000152d6cc","property":"payload.entity_id","propertyType":"msg","rules":[{"t":"eq","v":"binary_sensor.switch_158d0001a674c3","vt":"str"}],"checkall":"true","outputs":1,"x":335.2500762939453,"y":365.49078369140625,"wires":[["23462cfb.475464"]]},{"id":"7daff023.9cab","type":"server-events","z":"3933a201.bdd7ae","name":"","server":"79ffe1ba.7d31e","x":105,"y":363.3515567779541,"wires":[["cdc0d0df.b3f62"]]},{"id":"9dd96177.eb1e9","type":"api-current-state","z":"3933a201.bdd7ae","name":"Light  on ?","server":"79ffe1ba.7d31e","halt_if":"off","entity_id":"switch.wall_switch_left_158d00012bad84","x":685.0962829589844,"y":314.2708396911621,"wires":[["9cf7568b.2681d8"]]},{"id":"9cf7568b.2681d8","type":"api-call-service","z":"3933a201.bdd7ae","name":"OFF","server":"79ffe1ba.7d31e","service_domain":"homeassistant","service":"turn_off","data":"{\"entity_id\":\"switch.wall_switch_left_158d00012bad84\"}","x":841.0129890441895,"y":359.0104064941406,"wires":[]},{"id":"79ffe1ba.7d31e","type":"server","z":"","name":"Home Assistant","url":"http://localhost:8123","pass":"XXXXXXXX"}]
RAW Paste Data