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