From 23178b1d7dcb4c10b392cec3929b02aa8fdbd3c7 Mon Sep 17 00:00:00 2001 From: jabertwo <git@jabertwo.de> Date: Sun, 20 Oct 2024 14:17:31 +0200 Subject: [PATCH] ha automation for new plugs --- .../templates/config/configuration.yaml | 59 +++++++++++++++---- 1 file changed, 49 insertions(+), 10 deletions(-) diff --git a/intern/docker_homeassistant/templates/config/configuration.yaml b/intern/docker_homeassistant/templates/config/configuration.yaml index 38f47fe3..2b6a9fbd 100644 --- a/intern/docker_homeassistant/templates/config/configuration.yaml +++ b/intern/docker_homeassistant/templates/config/configuration.yaml @@ -682,7 +682,7 @@ automation ansible: max: 30 # WLED Zonenstatus - - alias: "ANSIBLE_WLED_Zonenstatus" + - alias: ANSIBLE_WLED_Zonenstatus description: "Turn WLED devices on, when opened, off when closed" mode: single trigger: @@ -743,46 +743,85 @@ automation ansible: - light.liba_logo_leds - light.kuehl_leds - type: turn_on - device_id: 7ba91dde6b1413340fdc66f2984dfd00 entity_id: light.brightness domain: light + - type: turn_on + entity_id: switch.esphome_plug01_relay + domain: switch + - type: turn_on + entity_id: switch.esphome_plug02_relay + domain: switch + - type: turn_on + entity_id: switch.esphome_plug03_relay + domain: switch + - type: turn_on + entity_id: switch.esphome_plug04_relay + domain: switch + - type: turn_on + entity_id: switch.esphome_plug05_relay + domain: switch + - type: turn_on + entity_id: switch.esphome_plug06_relay + domain: switch + - type: turn_on + entity_id: switch.esphome_plug07_relay + domain: switch + - type: turn_on + entity_id: switch.esphome_plug08_relay + domain: switch + - type: turn_on + entity_id: switch.tasmota_nous_plug1 + domain: switch + - type: turn_on + entity_id: switch.tasmota_nous_plug4 + domain: switch + - type: turn_on + entity_id: switch.tasmota_nous_plug6 + domain: switch + - type: turn_on + entity_id: switch.tasmota_nous_plug7 + domain: switch - conditions: - condition: state entity_id: input_select.zonenstatus state: "closed" 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 + entity_id: switch.tasmota_nous_plug1 + domain: switch + - type: turn_off + entity_id: switch.tasmota_nous_plug4 + domain: switch + - type: turn_off + entity_id: switch.tasmota_nous_plug6 + domain: switch + - type: turn_on + entity_id: switch.tasmota_nous_plug7 + domain: switch - service: light.turn_off data: {} target: -- GitLab