From 5fa6991712eb65509856d55e422807d9540438c1 Mon Sep 17 00:00:00 2001 From: jabertwo <git@jabertwo.de> Date: Fri, 7 Jul 2023 18:28:43 +0200 Subject: [PATCH] homeassistant automatisierungen via ansible - part 3 --- .../templates/config/configuration.yaml | 108 ++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/intern/docker_homeassistant/templates/config/configuration.yaml b/intern/docker_homeassistant/templates/config/configuration.yaml index 0ee6eb13..bc18e17a 100644 --- a/intern/docker_homeassistant/templates/config/configuration.yaml +++ b/intern/docker_homeassistant/templates/config/configuration.yaml @@ -311,3 +311,111 @@ automation ansible: - climate.treppenhaus_thermostat_1 - climate.vortragsraum_vorne mode: single + + # WLED rot + - alias: ANSIBLE_WLED_red + description: + trigger: + - type: turned_on + platform: device + device_id: 33915e12bd114226dcd4718e77a27779 + entity_id: binary_sensor.button_4 + condition: [] + action: + - service: light.turn_on + data: + rgb_color: + - 255 + - 0 + - 0 + efect: Solid + target: + area_id: + - hackcenter + - kuche + - lounge + - serverrack + - klo + mode: queued + max: 30 + + # WLED gruen + - alias: ANSIBLE_WLED_green + description: + trigger: + - type: turned_on + platform: device + device_id: 33915e12bd114226dcd4718e77a27779 + entity_id: binary_sensor.button_5 + condition: [] + action: + - service: light.turn_on + data: + rgb_color: + - 0 + - 255 + - 0 + efect: Solid + target: + area_id: + - hackcenter + - kuche + - lounge + - serverrack + - klo + mode: queued + max: 30 + + # WLED blue + - alias: ANSIBLE_WLED_blue + description: + trigger: + - type: turned_on + platform: device + device_id: 33915e12bd114226dcd4718e77a27779 + entity_id: binary_sensor.button_6 + condition: [] + action: + - service: light.turn_on + data: + rgb_color: + - 0 + - 0 + - 255 + efect: Solid + target: + area_id: + - hackcenter + - kuche + - lounge + - serverrack + - klo + mode: queued + max: 30 + + # WLED white + - alias: ANSIBLE_WLED_white + description: + trigger: + - type: turned_on + platform: device + device_id: 33915e12bd114226dcd4718e77a27779 + entity_id: binary_sensor.button_2 + condition: [] + action: + - service: light.turn_on + data: + rgb_color: + - 255 + - 255 + - 255 + efect: Solid + target: + area_id: + - hackcenter + - kuche + - lounge + - serverrack + - klo + mode: queued + max: 30 -- GitLab