Skip to content
Snippets Groups Projects
Commit babd5c8b authored by jabertwo's avatar jabertwo
Browse files

Nodered automations in ha, now working

parent b5a9b1ee
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
payload: "CLOSED" payload: "CLOSED"
then: then:
- switch.turn_off: relay - switch.turn_off: relay
- topic: warpzone/door/status_once
payload: "OPEN"
then:
- switch.turn_on: relay
status_led: status_led:
pin: pin:
......
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
payload: "CLOSED" payload: "CLOSED"
then: then:
- switch.turn_off: relay - switch.turn_off: relay
- topic: warpzone/door/status_once
payload: "OPEN"
then:
- switch.turn_on: relay
status_led: status_led:
pin: pin:
......
...@@ -19,6 +19,10 @@ ...@@ -19,6 +19,10 @@
payload: "CLOSED" payload: "CLOSED"
then: then:
- switch.turn_off: relay - switch.turn_off: relay
- topic: warpzone/door/status_once
payload: "OPEN"
then:
- switch.turn_on: relay
substitutions: substitutions:
plug_name: {{ devicename }} plug_name: {{ devicename }}
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
payload: "OFF" payload: "OFF"
then: then:
- switch.turn_off: relay - switch.turn_off: relay
- topic: warpzone/door/status_once
payload: "OPEN"
then:
- switch.turn_on: relay
substitutions: substitutions:
plug_name: {{ devicename }} plug_name: {{ devicename }}
......
...@@ -736,32 +736,15 @@ automation ansible: ...@@ -736,32 +736,15 @@ automation ansible:
- conditions: - conditions:
- condition: state - condition: state
entity_id: input_select.zonenstatus entity_id: input_select.zonenstatus
state: "" state: "opened"
sequence: sequence:
- type: turn_on - service: light.turn_on
device_id: 9f6aded98a4a96ab85c96b829895f449 data:
entity_id: switch.esphome_plug02_relay effect: Rainbow
domain: switch target:
- type: turn_on entity_id:
device_id: 502f88ff07aa71cb053ad4112e0dd6bd - light.liba_logo_leds
entity_id: switch.esphome_plug03_relay - light.kuehl_leds
domain: switch
- type: turn_on
device_id: 1637a583963ba02dc7baa17427f8ac00
entity_id: switch.esphome_plug07_relay
domain: switch
- type: turn_on
device_id: 1da3229859c49c822fd8e9c630fa9004
entity_id: switch.esphome_plug08_relay
domain: switch
- type: turn_on
device_id: 5e6ae37116ba1d3f3d95b8d571d28149
entity_id: light.liba_logo_leds
domain: light
- type: turn_on
device_id: 5e6ae37116ba1d3f3d95b8d571d28149
entity_id: light.kuehl_leds
domain: light
- type: turn_on - type: turn_on
device_id: 7ba91dde6b1413340fdc66f2984dfd00 device_id: 7ba91dde6b1413340fdc66f2984dfd00
entity_id: light.brightness entity_id: light.brightness
...@@ -769,7 +752,7 @@ automation ansible: ...@@ -769,7 +752,7 @@ automation ansible:
- conditions: - conditions:
- condition: state - condition: state
entity_id: input_select.zonenstatus entity_id: input_select.zonenstatus
state: "" state: "closed"
sequence: sequence:
- type: turn_off - type: turn_off
device_id: 1dace6e3f89d85152cde6383312792eb device_id: 1dace6e3f89d85152cde6383312792eb
...@@ -803,14 +786,12 @@ automation ansible: ...@@ -803,14 +786,12 @@ automation ansible:
device_id: 1da3229859c49c822fd8e9c630fa9004 device_id: 1da3229859c49c822fd8e9c630fa9004
entity_id: switch.esphome_plug08_relay entity_id: switch.esphome_plug08_relay
domain: switch domain: switch
- type: turn_off - service: light.turn_off
device_id: 5e6ae37116ba1d3f3d95b8d571d28149 data: {}
entity_id: light.liba_logo_leds target:
domain: light entity_id:
- type: turn_off - light.liba_logo_leds
device_id: 5e6ae37116ba1d3f3d95b8d571d28149 - light.kuehl_leds
entity_id: light.kuehl_leds
domain: light
- type: turn_off - type: turn_off
device_id: 7ba91dde6b1413340fdc66f2984dfd00 device_id: 7ba91dde6b1413340fdc66f2984dfd00
entity_id: light.brightness entity_id: light.brightness
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment