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

Move nodered automations to ansible

parent 05622ad7
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
{% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.esp01_1m.inc.yaml" %}
comment: Halogen Lounge
comment: frei
{% include "/includes/common.inc.yaml" %}
on_message:
......
......@@ -3,7 +3,7 @@
{% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.esp01_1m.inc.yaml" %}
comment: 3D Drucker Prusanet
comment: WLED Vorhang
{% include "/includes/common.inc.yaml" %}
on_message:
......
......@@ -135,7 +135,7 @@ climate:
id: pid_heater
name: "PID Heater Controller"
sensor: pot_sensor
default_target_temperature: 240
default_target_temperature: 220
heat_output: pot_heater
control_parameters:
kp: 0.09549
......
......@@ -298,8 +298,7 @@ automation ansible:
# turn off all radiators
- alias: ANSIBLE_heizung_aus
description: Schaltet alle Heizungen aus
trigger:
- type: []
trigger: []
condition: []
action:
- service: climate.turn_off
......@@ -684,4 +683,135 @@ automation ansible:
- select.lampan_preset
- select.clock_preset
mode: single
# WLED Zonenstatus
- alias: "ANSIBLE_WLED_Zonenstatus"
description: "Turn WLED devices on, when opened, off when closed"
mode: single
trigger:
- platform: state
entity_id:
- input_select.zonenstatus
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: input_select.zonenstatus
state: open
sequence:
- service: light.turn_on
data: {}
target:
area_id:
- eingang
- hackcenter
- kuche
- lounge
- conditions:
- condition: state
entity_id: input_select.zonenstatus
state: closed
sequence:
- service: light.turn_off
data: {}
target:
area_id:
- eingang
- hackcenter
- kuche
- lounge
# ESPHOME Zonenstatus
- alias: "ANSIBLE_ESPHOME_Zonenstatus"
description: ""
mode: single
trigger:
- platform: state
entity_id:
- input_select.zonenstatus
condition: []
action:
- choose:
- conditions:
- condition: state
entity_id: input_select.zonenstatus
state: ""
sequence:
- type: turn_on
device_id: 9f6aded98a4a96ab85c96b829895f449
entity_id: switch.esphome_plug02_relay
domain: switch
- type: turn_on
device_id: 502f88ff07aa71cb053ad4112e0dd6bd
entity_id: switch.esphome_plug03_relay
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
device_id: 7ba91dde6b1413340fdc66f2984dfd00
entity_id: light.brightness
domain: light
- conditions:
- condition: state
entity_id: input_select.zonenstatus
state: ""
sequence:
- type: turn_off
device_id: 1dace6e3f89d85152cde6383312792eb
entity_id: switch.esphome_plug01_relay
domain: switch
- type: turn_off
device_id: 9f6aded98a4a96ab85c96b829895f449
entity_id: switch.esphome_plug02_relay
domain: switch
- type: turn_off
device_id: 502f88ff07aa71cb053ad4112e0dd6bd
entity_id: switch.esphome_plug03_relay
domain: switch
- type: turn_off
device_id: b9ea4fd30dabfe365b5098c66eb1f4ba
entity_id: switch.esphome_plug04_relay
domain: switch
- type: turn_off
device_id: c5f54add49fda7640497b1883315d48b
entity_id: switch.esphome_plug05_relay
domain: switch
- type: turn_off
device_id: a0788c8cf4ee036ce43e0d563fdbdb3a
entity_id: switch.esphome_plug06_relay
domain: switch
- type: turn_off
device_id: 1637a583963ba02dc7baa17427f8ac00
entity_id: switch.esphome_plug07_relay
domain: switch
- type: turn_off
device_id: 1da3229859c49c822fd8e9c630fa9004
entity_id: switch.esphome_plug08_relay
domain: switch
- type: turn_off
device_id: 5e6ae37116ba1d3f3d95b8d571d28149
entity_id: light.liba_logo_leds
domain: light
- type: turn_off
device_id: 5e6ae37116ba1d3f3d95b8d571d28149
entity_id: light.kuehl_leds
domain: light
- type: turn_off
device_id: 7ba91dde6b1413340fdc66f2984dfd00
entity_id: light.brightness
domain: light
\ No newline at end of file
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