From 45166fa647373d1394a92e0b21f01a0e21120b6e Mon Sep 17 00:00:00 2001 From: Claus Dethlefsen Date: Sun, 15 Mar 2026 15:41:22 +0100 Subject: [PATCH] diverse --- include/automations/lys_forgang.yaml | 43 ----------------------- include/automations/lys_gang.yaml | 20 +++++------ include/automations/lys_garage.yaml | 2 +- include/automations/lys_have.yaml | 1 + include/automations/lys_sauna.yaml | 2 +- include/automations/lys_sovevaerelse.yaml | 4 +-- include/automations/lysindkorsel.yaml | 15 ++++---- include/automations/lysvedgarage.yaml | 2 ++ 8 files changed, 25 insertions(+), 64 deletions(-) diff --git a/include/automations/lys_forgang.yaml b/include/automations/lys_forgang.yaml index 562e65f..e69de29 100644 --- a/include/automations/lys_forgang.yaml +++ b/include/automations/lys_forgang.yaml @@ -1,43 +0,0 @@ -# Turns on lights at sunset - - alias: 'Lys i glasskab i forgang' - trigger: - - platform: sun - event: sunset - condition: - - condition: time - before: '21:30:00' - action: - service: homeassistant.turn_on - entity_id: light.sonoff_100069a6cc - -# Turns off lights - - alias: 'Sluk lys i glasskab i forgang' - trigger: - - platform: time - at: '22:00:00' - action: - service: homeassistant.turn_off - entity_id: light.sonoff_100069a6cc - -# Turns on lights at 06:00 - - alias: 'Lys i glasskab i forgang morgen' - trigger: - - platform: time - at: '06:00:00' - condition: - - condition: state # from sunset until sunrise - entity_id: sun.sun - state: 'below_horizon' - action: - service: homeassistant.turn_on - entity_id: light.sonoff_100069a6cc - -# Turns off lights at sunrise - - alias: 'Sluk lys i glasskab i forgang morgen' - trigger: - - platform: sun - event: sunrise - action: - service: homeassistant.turn_off - entity_id: light.sonoff_100069a6cc - diff --git a/include/automations/lys_gang.yaml b/include/automations/lys_gang.yaml index 528fd45..e548239 100644 --- a/include/automations/lys_gang.yaml +++ b/include/automations/lys_gang.yaml @@ -11,7 +11,7 @@ entity_id: sensor.gang_sensor_illuminance below: '70' - condition: time - before: '20:00:00' + before: '21:30:00' - condition: time after: '06:30:00' action: @@ -27,7 +27,7 @@ entity_id: binary_sensor.gang_sensor_motion to: 'off' for: - minutes: 2 + minutes: 3 condition: - condition: state entity_id: binary_sensor.arbejdsdag @@ -35,7 +35,7 @@ - condition: time after: '06:30:10' - condition: time - before: '20:00:00' + before: '21:30:00' action: service: light.turn_off data: @@ -56,7 +56,7 @@ - condition: time after: '08:00:00' - condition: time - before: '20:30:00' + before: '22:00:00' action: - service: scene.turn_on data: @@ -70,7 +70,7 @@ entity_id: binary_sensor.gang_sensor_motion to: 'off' for: - minutes: 2 + minutes: 3 condition: - condition: state entity_id: binary_sensor.arbejdsdag @@ -78,7 +78,7 @@ - condition: time after: '08:00:10' - condition: time - before: '20:30:00' + before: '22:00:00' action: service: light.turn_off data: @@ -100,7 +100,7 @@ below: '70' - condition: time before: '06:30:00' - after: '20:00:00' + after: '21:30:00' action: - service: scene.turn_on data: @@ -120,7 +120,7 @@ entity_id: binary_sensor.arbejdsdag state: 'on' - condition: time - after: '20:00:10' + after: '21:30:10' before: '06:30:00' action: service: light.turn_off @@ -140,7 +140,7 @@ # entity_id: sensor.gang_sensor_light_level # below: '70' - condition: time - after: '20:30:00' + after: '22:00:00' before: '08:00:00' action: - service: scene.turn_on @@ -162,7 +162,7 @@ entity_id: binary_sensor.arbejdsdag state: 'off' - condition: time - after: '20:30:10' + after: '22:00:10' before: '08:00:00' action: - service: light.turn_off diff --git a/include/automations/lys_garage.yaml b/include/automations/lys_garage.yaml index 1b9235d..dd24427 100644 --- a/include/automations/lys_garage.yaml +++ b/include/automations/lys_garage.yaml @@ -15,7 +15,7 @@ entity_id: binary_sensor.garage_sensor_motion to: 'off' for: - minutes: 5 + minutes: 15 action: - service: homeassistant.turn_off data: diff --git a/include/automations/lys_have.yaml b/include/automations/lys_have.yaml index 3b63c3d..c692e37 100644 --- a/include/automations/lys_have.yaml +++ b/include/automations/lys_have.yaml @@ -17,6 +17,7 @@ condition: - condition: time before: '22:00:00' + after: '15:00:00' action: # - delay: '00:{{ (range(1, 20)|random|int) }}:00' - service: script.have_color_scene diff --git a/include/automations/lys_sauna.yaml b/include/automations/lys_sauna.yaml index e29033d..d59e475 100644 --- a/include/automations/lys_sauna.yaml +++ b/include/automations/lys_sauna.yaml @@ -16,7 +16,7 @@ entity_id: binary_sensor.sauna_motion_motion to: 'off' for: - minutes: 2 + minutes: 3 action: - service: homeassistant.turn_off data: diff --git a/include/automations/lys_sovevaerelse.yaml b/include/automations/lys_sovevaerelse.yaml index 76806d2..2040287 100644 --- a/include/automations/lys_sovevaerelse.yaml +++ b/include/automations/lys_sovevaerelse.yaml @@ -156,11 +156,11 @@ entity_id: binary_sensor.hue_motion_sensor_1_motion_2 to: 'off' for: - minutes: 1 + minutes: 5 condition: - condition: time after: '06:30:00' - before: '20:00:00' + before: '22:00:00' action: - service: homeassistant.turn_off data: diff --git a/include/automations/lysindkorsel.yaml b/include/automations/lysindkorsel.yaml index d466b8b..34dc699 100644 --- a/include/automations/lysindkorsel.yaml +++ b/include/automations/lysindkorsel.yaml @@ -13,11 +13,11 @@ # entity_id: sun.sun # state: 'below_horizon' action: - - service: light.turn_on + - service: scene.turn_on data: - entity_id: light.indkorsel_2 + entity_id: scene.indkorsel_bright - - alias: 'Sluk lys indkørsel morgen' + - alias: 'Sluk lys indkørsel når der er lys nok' trigger: platform: numeric_state entity_id: sensor.indkorsel_sensor_illuminance @@ -37,11 +37,12 @@ event: sunset condition: - condition: time + after: '08:00:00' before: '22:00:00' action: - - service: light.turn_on + - service: scene.turn_on data: - entity_id: light.indkorsel_2 + entity_id: scene.indkorsel_bright - alias: 'Sluk lys indkørsel aften' trigger: @@ -74,9 +75,9 @@ # entity_id: sun.sun # state: below_horizon action: - - service: light.turn_on + - service: scene.turn_on data: - entity_id: light.indkorsel_2 + entity_id: scene.indkorsel_bright - alias: 'Sluk lys indkørsel 15 min efter bevægelse' trigger: diff --git a/include/automations/lysvedgarage.yaml b/include/automations/lysvedgarage.yaml index 667b765..bcb0279 100644 --- a/include/automations/lysvedgarage.yaml +++ b/include/automations/lysvedgarage.yaml @@ -19,6 +19,7 @@ entity_id: - light.drivhus - light.paradis + - light.extended_color_light_1 - alias: 'Sluk lys ved garage' trigger: @@ -33,6 +34,7 @@ entity_id: - light.drivhus - light.paradis + - light.extended_color_light_1