From d0e3a6c3e5febdbc154246e63ec4aafe543f12d3 Mon Sep 17 00:00:00 2001 From: Claus Dethlefsen Date: Sun, 17 May 2026 11:14:38 +0200 Subject: [PATCH] =?UTF-8?q?Indk=C3=B8rsel:=20erstat=20Hue=20plug=20med=20Z?= =?UTF-8?q?igbee=20stik=5Findkorsel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - grupper.yaml: fjern light.indkorsel_plug fra Indkørsel og Udendørslamper grupper - lysindkorsel.yaml: tilføj switch.stik_indkorsel turn_on/off ved alle 6 handlinger - presence_simulation.yaml: tilføj switch.stik_indkorsel i morgen/aften sekvenser - andreas_kommer_hjem: tilføj switch.stik_indkorsel turn_on/off --- .../andreas_kommer_hjem_taend_lys.yaml | 8 +++++++ include/automations/lysindkorsel.yaml | 24 ++++++++++++++++--- include/automations/presence_simulation.yaml | 16 +++++++++++++ include/lights/grupper.yaml | 2 -- 4 files changed, 45 insertions(+), 5 deletions(-) diff --git a/include/automations/andreas_kommer_hjem_taend_lys.yaml b/include/automations/andreas_kommer_hjem_taend_lys.yaml index 9d7d6b0..c569633 100644 --- a/include/automations/andreas_kommer_hjem_taend_lys.yaml +++ b/include/automations/andreas_kommer_hjem_taend_lys.yaml @@ -48,9 +48,17 @@ target: entity_id: "{{ lights_to_turn_on }}" + - service: switch.turn_on + data: + entity_id: switch.stik_indkorsel + - delay: "00:10:00" - service: light.turn_off target: entity_id: "{{ lights_to_turn_on }}" + + - service: switch.turn_off + data: + entity_id: switch.stik_indkorsel diff --git a/include/automations/lysindkorsel.yaml b/include/automations/lysindkorsel.yaml index 34dc699..7709f5a 100644 --- a/include/automations/lysindkorsel.yaml +++ b/include/automations/lysindkorsel.yaml @@ -16,6 +16,9 @@ - service: scene.turn_on data: entity_id: scene.indkorsel_bright + - service: switch.turn_on + data: + entity_id: switch.stik_indkorsel - alias: 'Sluk lys indkørsel når der er lys nok' trigger: @@ -30,6 +33,9 @@ - service: light.turn_off data: entity_id: light.indkorsel_2 + - service: switch.turn_off + data: + entity_id: switch.stik_indkorsel - alias: 'Tænd lys indkørsel aften' trigger: @@ -43,6 +49,9 @@ - service: scene.turn_on data: entity_id: scene.indkorsel_bright + - service: switch.turn_on + data: + entity_id: switch.stik_indkorsel - alias: 'Sluk lys indkørsel aften' trigger: @@ -52,6 +61,9 @@ - service: light.turn_off data: entity_id: light.indkorsel_2 + - service: switch.turn_off + data: + entity_id: switch.stik_indkorsel - alias: 'Tænd lys indkørsel ved bevægelse' @@ -78,6 +90,9 @@ - service: scene.turn_on data: entity_id: scene.indkorsel_bright + - service: switch.turn_on + data: + entity_id: switch.stik_indkorsel - alias: 'Sluk lys indkørsel 15 min efter bevægelse' trigger: @@ -97,8 +112,11 @@ # entity_id: sun.sun # state: below_horizon action: - service: light.turn_off - data: - entity_id: light.indkorsel_2 + - service: light.turn_off + data: + entity_id: light.indkorsel_2 + - service: switch.turn_off + data: + entity_id: switch.stik_indkorsel diff --git a/include/automations/presence_simulation.yaml b/include/automations/presence_simulation.yaml index 221ea75..838a9dc 100644 --- a/include/automations/presence_simulation.yaml +++ b/include/automations/presence_simulation.yaml @@ -54,6 +54,10 @@ - delay: seconds: "{{ range(30,180) | random }}" + - service: switch.turn_on + data: + entity_id: switch.stik_indkorsel + - delay: minutes: "{{ range(10,30) | random }}" @@ -66,6 +70,10 @@ - delay: seconds: "{{ range(20,120) | random }}" + - service: switch.turn_off + data: + entity_id: switch.stik_indkorsel + - choose: - conditions: - condition: template @@ -146,6 +154,10 @@ - delay: seconds: "{{ range(20,120) | random }}" + - service: switch.turn_on + data: + entity_id: switch.stik_indkorsel + - delay: minutes: "{{ range(15,60) | random }}" @@ -158,6 +170,10 @@ - delay: seconds: "{{ range(20,120) | random }}" + - service: switch.turn_off + data: + entity_id: switch.stik_indkorsel + - choose: - conditions: - condition: template diff --git a/include/lights/grupper.yaml b/include/lights/grupper.yaml index 59b93d2..8f7f228 100644 --- a/include/lights/grupper.yaml +++ b/include/lights/grupper.yaml @@ -105,7 +105,6 @@ name: Indkørsel unique_id: lys_indkorsel entities: - - light.indkorsel_plug - light.udendors_forgang - light.hue_ambiance_lamp_1_2 - light.hue_ambiance_lamp_1_3 @@ -116,7 +115,6 @@ unique_id: lys_udenfor entities: - light.garage - - light.indkorsel_plug - light.fordoer - light.julelys