Created
January 1, 2019 22:31
-
-
Save tgerla/d6ffbb6314ce1587efbb2b2e70a13e68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"d2c76563.588cd8","type":"server-events","z":"a690d7b2.106068","name":"","server":"551ba535.a7d72c","event_type":"call_service","x":129.5,"y":44,"wires":[["6de89124.0f8b2"]]},{"id":"6de89124.0f8b2","type":"switch","z":"a690d7b2.106068","name":"Scene?","property":"payload.event.domain","propertyType":"msg","rules":[{"t":"eq","v":"scene","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":185.5,"y":119,"wires":[["84a8ba16.bc8d08"]]},{"id":"84a8ba16.bc8d08","type":"switch","z":"a690d7b2.106068","name":"Which scene?","property":"payload.event.service_data.entity_id","propertyType":"msg","rules":[{"t":"eq","v":"scene.good_morning_scene","vt":"str"},{"t":"eq","v":"scene.tv_scene","vt":"str"},{"t":"eq","v":"scene.bedtime_scene","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":393.5,"y":70,"wires":[["a0c08926.6e45e8"],["69b413a8.8f9d0c"],["cf929d4f.36e46"]]},{"id":"e4391b1c.3ba758","type":"api-call-service","z":"a690d7b2.106068","name":"Hallway LEDs ON","server":"551ba535.a7d72c","service_domain":"light","service":"turn_on","data":"{\"entity_id\":\"light.hallway_leds\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":359.5,"y":310,"wires":[[]]},{"id":"13c65366.c43a1d","type":"api-call-service","z":"a690d7b2.106068","name":"Christmas Tree ON","server":"551ba535.a7d72c","service_domain":"switch","service":"turn_on","data":"{\"entity_id\":\"switch.sonoff_3\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":356.5,"y":363,"wires":[[]]},{"id":"5579e945.b83b98","type":"api-call-service","z":"a690d7b2.106068","name":"Tripod Lamp ON","server":"551ba535.a7d72c","service_domain":"switch","service":"turn_on","data":"{\"entity_id\":\"switch.sonoff_5\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":348.5,"y":418,"wires":[[]]},{"id":"2e9cae07.e1f2e2","type":"link in","z":"a690d7b2.106068","name":"Good Morning Scene","links":["a0c08926.6e45e8","36625278.d2e49e"],"x":101.5,"y":350,"wires":[["e4391b1c.3ba758","13c65366.c43a1d","5579e945.b83b98"]]},{"id":"a0c08926.6e45e8","type":"link out","z":"a690d7b2.106068","name":"Good Morning Scene","links":["2e9cae07.e1f2e2"],"x":628.5,"y":33,"wires":[],"inputLabels":["Good Morning"]},{"id":"26aa646.448c09c","type":"api-call-service","z":"a690d7b2.106068","name":"Hallway LEDs ON","server":"551ba535.a7d72c","service_domain":"light","service":"turn_on","data":"{\"entity_id\":\"light.hallway_leds\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":350,"y":517,"wires":[[]]},{"id":"459b84de.a29a1c","type":"api-call-service","z":"a690d7b2.106068","name":"TV Lamp ON","server":"551ba535.a7d72c","service_domain":"switch","service":"turn_on","data":"{\"entity_id\":\"switch.sonoff_2\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":329,"y":570,"wires":[[]]},{"id":"5fe10c30.c03974","type":"api-call-service","z":"a690d7b2.106068","name":"Tripod Lamp ON","server":"551ba535.a7d72c","service_domain":"switch","service":"turn_on","data":"{\"entity_id\":\"switch.sonoff_5\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":338,"y":619,"wires":[[]]},{"id":"1ec0020a.564f8e","type":"link in","z":"a690d7b2.106068","name":"TV Scene","links":["69b413a8.8f9d0c","e8e49893.db9238"],"x":92,"y":574,"wires":[["26aa646.448c09c","459b84de.a29a1c","5fe10c30.c03974","23039086.98967"]]},{"id":"23039086.98967","type":"api-call-service","z":"a690d7b2.106068","name":"Stairwell Lights OFF","server":"551ba535.a7d72c","service_domain":"light","service":"turn_off","data":"{\"entity_id\":\"light.downstairs_hallway_main_lights\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":357,"y":670,"wires":[[]]},{"id":"69b413a8.8f9d0c","type":"link out","z":"a690d7b2.106068","name":"","links":["1ec0020a.564f8e"],"x":628.5,"y":70,"wires":[]},{"id":"7c141837.a033a8","type":"inject","z":"a690d7b2.106068","name":"TV Scene","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":98.5,"y":493,"wires":[["e8e49893.db9238"]]},{"id":"e8e49893.db9238","type":"link out","z":"a690d7b2.106068","name":"","links":["1ec0020a.564f8e"],"x":206.5,"y":493,"wires":[]},{"id":"4339965a.744978","type":"inject","z":"a690d7b2.106068","name":"Good Morning Scene","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":138.5,"y":270,"wires":[["36625278.d2e49e"]]},{"id":"36625278.d2e49e","type":"link out","z":"a690d7b2.106068","name":"","links":["2e9cae07.e1f2e2"],"x":279.5,"y":270,"wires":[]},{"id":"cf929d4f.36e46","type":"link out","z":"a690d7b2.106068","name":"Bedtime Scene","links":["81145dd1.72d09"],"x":628.5,"y":110,"wires":[]},{"id":"af40f8f8.cfdc98","type":"api-call-service","z":"a690d7b2.106068","name":"Hallway LEDs OFF","server":"551ba535.a7d72c","service_domain":"light","service":"turn_off","data":"{\"entity_id\":\"light.hallway_leds\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":376,"y":761,"wires":[[]]},{"id":"73c20cf6.cf8ec4","type":"api-call-service","z":"a690d7b2.106068","name":"TV Lamp OFF","server":"551ba535.a7d72c","service_domain":"switch","service":"turn_off","data":"{\"entity_id\":\"switch.sonoff_2\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":364,"y":812,"wires":[[]]},{"id":"9089644f.c1d728","type":"api-call-service","z":"a690d7b2.106068","name":"Tripod Lamp OFF","server":"551ba535.a7d72c","service_domain":"switch","service":"turn_off","data":"{\"entity_id\":\"switch.sonoff_5\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":371,"y":862,"wires":[[]]},{"id":"81145dd1.72d09","type":"link in","z":"a690d7b2.106068","name":"Bedtime Scene","links":["cf929d4f.36e46","a14ed26c.5d964"],"x":97,"y":818,"wires":[["af40f8f8.cfdc98","73c20cf6.cf8ec4","9089644f.c1d728","43f5a4a5.8d35fc","32f78555.fcddca"]]},{"id":"43f5a4a5.8d35fc","type":"api-call-service","z":"a690d7b2.106068","name":"Stairwell Lights ON","server":"551ba535.a7d72c","service_domain":"light","service":"turn_on","data":"{\"entity_id\":\"light.downstairs_hallway_main_lights\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":370,"y":914,"wires":[["7704fc89.a785d4"]]},{"id":"d7444e2b.74682","type":"inject","z":"a690d7b2.106068","name":"Bedtime Scene","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":123.5,"y":737,"wires":[["a14ed26c.5d964"]]},{"id":"a14ed26c.5d964","type":"link out","z":"a690d7b2.106068","name":"","links":["81145dd1.72d09"],"x":250.5,"y":737,"wires":[]},{"id":"32f78555.fcddca","type":"api-call-service","z":"a690d7b2.106068","name":"Christmas Tree OFF","server":"551ba535.a7d72c","service_domain":"switch","service":"turn_off","data":"{\"entity_id\":\"switch.sonoff_3\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":377,"y":964,"wires":[[]]},{"id":"7704fc89.a785d4","type":"delay","z":"a690d7b2.106068","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"minutes","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":591.5,"y":861,"wires":[["fa20748e.5f3b68"]]},{"id":"fa20748e.5f3b68","type":"api-call-service","z":"a690d7b2.106068","name":"Stairwell Lights OFF","server":"551ba535.a7d72c","service_domain":"light","service":"turn_off","data":"{\"entity_id\":\"light.downstairs_hallway_main_lights\"}","render_data":false,"mergecontext":"","output_location":"payload","output_location_type":"msg","x":649,"y":952,"wires":[[]]},{"id":"551ba535.a7d72c","type":"server","z":"","name":"Home Assistant"}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment