From 18d32939537b02b4f80d9aaa048c06c5f22f6e4b Mon Sep 17 00:00:00 2001 From: Claus Dethlefsen Date: Wed, 15 Apr 2026 19:18:59 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20gang=20sluk-automationer:=20brug=20light.?= =?UTF-8?q?gang=20gruppe=20i=20stedet=20for=20light.gang=5F2=20+=20tilf?= =?UTF-8?q?=C3=B8j=20docker-compose.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 12 ++++++++++++ include/automations/lys_gang.yaml | 12 ++++++------ 2 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9694dff --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,12 @@ +services: + home-assistant: + container_name: homeassistant + image: homeassistant/home-assistant:latest + volumes: + - /volume1/homeassistant:/config + devices: + - /dev/ttyUSB0:/dev/ttyUSB0 + network_mode: host + restart: always + environment: + - TZ=Europe/Copenhagen diff --git a/include/automations/lys_gang.yaml b/include/automations/lys_gang.yaml index e548239..99b809c 100644 --- a/include/automations/lys_gang.yaml +++ b/include/automations/lys_gang.yaml @@ -81,8 +81,8 @@ before: '22:00:00' action: service: light.turn_off - data: - entity_id: light.gang_2 + target: + entity_id: light.gang ########## NIGHT @@ -124,8 +124,8 @@ before: '06:30:00' action: service: light.turn_off - data: - entity_id: light.gang_2 + target: + entity_id: light.gang - alias: 'Lys i gang - ikke arbejdsdag - nat' trigger: @@ -166,6 +166,6 @@ before: '08:00:00' action: - service: light.turn_off - data: - entity_id: light.gang_2 + target: + entity_id: light.gang