From 9c184ed0b7d12b72d0a5689eefe3b2b88a753d33 Mon Sep 17 00:00:00 2001 From: Claus Dethlefsen Date: Fri, 24 Apr 2026 19:07:41 +0200 Subject: [PATCH] =?UTF-8?q?Syg-status:=20ret=20'Syg'=20=E2=86=92=20'syg'?= =?UTF-8?q?=20(lowercase)=20i=20alle=20filer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboards/views/02_person_status.yaml | 8 ++++---- include/automations/alarms.yaml | 24 +++++++++++------------ include/automations/lys_andreas.yaml | 2 +- include/automations/lys_daniel.yaml | 4 ++-- include/automations/lys_sovevaerelse.yaml | 8 ++++---- include/automations/syg.yaml | 24 +++++++++++------------ 6 files changed, 35 insertions(+), 35 deletions(-) diff --git a/dashboards/views/02_person_status.yaml b/dashboards/views/02_person_status.yaml index aceb659..8b096aa 100644 --- a/dashboards/views/02_person_status.yaml +++ b/dashboards/views/02_person_status.yaml @@ -25,7 +25,7 @@ sections: entity: input_select.andreas_status icon: mdi:account-heart icon_color: > - {% if is_state('input_select.andreas_status', 'Syg') %}red{% else %}green{% endif %} + {% if is_state('input_select.andreas_status', 'syg') %}red{% else %}green{% endif %} - type: vertical-stack cards: @@ -40,7 +40,7 @@ sections: entity: input_select.daniel_status icon: mdi:account-heart icon_color: > - {% if is_state('input_select.daniel_status', 'Syg') %}red{% else %}green{% endif %} + {% if is_state('input_select.daniel_status', 'syg') %}red{% else %}green{% endif %} - type: vertical-stack cards: @@ -55,7 +55,7 @@ sections: entity: input_select.anne_status icon: mdi:account-heart icon_color: > - {% if is_state('input_select.anne_status', 'Syg') %}red{% else %}green{% endif %} + {% if is_state('input_select.anne_status', 'syg') %}red{% else %}green{% endif %} - type: vertical-stack cards: @@ -70,7 +70,7 @@ sections: entity: input_select.claus_status icon: mdi:account-heart icon_color: > - {% if is_state('input_select.claus_status', 'Syg') %}red{% else %}green{% endif %} + {% if is_state('input_select.claus_status', 'syg') %}red{% else %}green{% endif %} # 🗺️ Popup kort - type: grid diff --git a/include/automations/alarms.yaml b/include/automations/alarms.yaml index 0dbdc67..c1cd4f0 100644 --- a/include/automations/alarms.yaml +++ b/include/automations/alarms.yaml @@ -9,8 +9,8 @@ state: 'on' - condition: template value_template: >- - {{ not is_state('input_select.anne_status', 'Syg') and - not is_state('input_select.claus_status', 'Syg') }} + {{ not is_state('input_select.anne_status', 'syg') and + not is_state('input_select.claus_status', 'syg') }} action: - service: homeassistant.turn_on entity_id: switch.sonos_alarm_1782 @@ -36,7 +36,7 @@ entity_id: binary_sensor.arbejdsdagimorgen state: 'on' - condition: template - value_template: "{{ not is_state('input_select.andreas_status', 'Syg') }}" + value_template: "{{ not is_state('input_select.andreas_status', 'syg') }}" action: - service: homeassistant.turn_on entity_id: switch.sonos_alarm_445 @@ -65,7 +65,7 @@ - condition: template value_template: '{{ now().date() | string != "2022-12-31" }}' - condition: template - value_template: "{{ not is_state('input_select.andreas_status', 'Syg') }}" + value_template: "{{ not is_state('input_select.andreas_status', 'syg') }}" action: - service: homeassistant.turn_on entity_id: switch.sonos_alarm_1874 @@ -87,7 +87,7 @@ entity_id: binary_sensor.arbejdsdagimorgen state: 'on' - condition: template - value_template: "{{ not is_state('input_select.daniel_status', 'Syg') }}" + value_template: "{{ not is_state('input_select.daniel_status', 'syg') }}" action: - service: homeassistant.turn_on entity_id: switch.sonos_alarm_377 @@ -114,7 +114,7 @@ entity_id: binary_sensor.arbejdsdagimorgen state: 'on' - condition: template - value_template: "{{ not is_state('input_select.daniel_status', 'Syg') }}" + value_template: "{{ not is_state('input_select.daniel_status', 'syg') }}" action: - service: homeassistant.turn_on entity_id: switch.sonos_alarm_1894 @@ -141,7 +141,7 @@ entity_id: binary_sensor.arbejdsdagimorgen state: 'on' - condition: template - value_template: "{{ not is_state('input_select.daniel_status', 'Syg') }}" + value_template: "{{ not is_state('input_select.daniel_status', 'syg') }}" action: - service: homeassistant.turn_on entity_id: switch.sonos_alarm_2273 @@ -170,7 +170,7 @@ - condition: template value_template: '{{ now().date() | string != "2022-12-31" }}' - condition: template - value_template: "{{ not is_state('input_select.daniel_status', 'Syg') }}" + value_template: "{{ not is_state('input_select.daniel_status', 'syg') }}" action: - service: homeassistant.turn_on entity_id: switch.sonos_alarm_3471 @@ -195,8 +195,8 @@ state: 'on' - condition: template value_template: >- - {{ not is_state('input_select.anne_status', 'Syg') and - not is_state('input_select.claus_status', 'Syg') }} + {{ not is_state('input_select.anne_status', 'syg') and + not is_state('input_select.claus_status', 'syg') }} action: - service: homeassistant.turn_on entity_id: switch.sonos_alarm_298 @@ -224,8 +224,8 @@ state: 'on' - condition: template value_template: >- - {{ not is_state('input_select.anne_status', 'Syg') and - not is_state('input_select.claus_status', 'Syg') }} + {{ not is_state('input_select.anne_status', 'syg') and + not is_state('input_select.claus_status', 'syg') }} action: - service: homeassistant.turn_on entity_id: switch.sonos_alarm_1899 diff --git a/include/automations/lys_andreas.yaml b/include/automations/lys_andreas.yaml index 32a8442..ee8dd1e 100644 --- a/include/automations/lys_andreas.yaml +++ b/include/automations/lys_andreas.yaml @@ -42,7 +42,7 @@ # Ikke syg - condition: template - value_template: "{{ not is_state('input_select.andreas_status', 'Syg') }}" + value_template: "{{ not is_state('input_select.andreas_status', 'syg') }}" sequence: diff --git a/include/automations/lys_daniel.yaml b/include/automations/lys_daniel.yaml index 6641716..be00cb7 100644 --- a/include/automations/lys_daniel.yaml +++ b/include/automations/lys_daniel.yaml @@ -26,7 +26,7 @@ after: '06:30:00' before: '19:30:00' - condition: template - value_template: "{{ not is_state('input_select.daniel_status', 'Syg') }}" + value_template: "{{ not is_state('input_select.daniel_status', 'syg') }}" action: - service: homeassistant.turn_on target: @@ -50,7 +50,7 @@ after: '10:00:00' before: '19:45:00' - condition: template - value_template: "{{ not is_state('input_select.daniel_status', 'Syg') }}" + value_template: "{{ not is_state('input_select.daniel_status', 'syg') }}" action: - service: homeassistant.turn_on target: diff --git a/include/automations/lys_sovevaerelse.yaml b/include/automations/lys_sovevaerelse.yaml index e870386..b5460c3 100644 --- a/include/automations/lys_sovevaerelse.yaml +++ b/include/automations/lys_sovevaerelse.yaml @@ -27,8 +27,8 @@ before: '20:00:00' - condition: template value_template: >- - {{ not is_state('input_select.anne_status', 'Syg') and - not is_state('input_select.claus_status', 'Syg') }} + {{ not is_state('input_select.anne_status', 'syg') and + not is_state('input_select.claus_status', 'syg') }} action: - service: homeassistant.turn_on target: @@ -53,8 +53,8 @@ before: '20:00:00' - condition: template value_template: >- - {{ not is_state('input_select.anne_status', 'Syg') and - not is_state('input_select.claus_status', 'Syg') }} + {{ not is_state('input_select.anne_status', 'syg') and + not is_state('input_select.claus_status', 'syg') }} action: - service: homeassistant.turn_on target: diff --git a/include/automations/syg.yaml b/include/automations/syg.yaml index e787a8c..a0e6d6e 100644 --- a/include/automations/syg.yaml +++ b/include/automations/syg.yaml @@ -1,8 +1,8 @@ ################################################## # Syg-status: sluk alarmer + motion-lys ved sygdom # -# Triggeres af input_select.PERSON_status → "Syg" -# Genaktiverer alarmer når status ikke længere er "Syg" +# Triggeres af input_select.PERSON_status → "syg" +# Genaktiverer alarmer når status ikke længere er "syg" # Motion-lys håndteres via conditions i lys_*.yaml ################################################## @@ -13,7 +13,7 @@ trigger: - platform: state entity_id: input_select.andreas_status - to: "Syg" + to: "syg" action: - service: homeassistant.turn_off target: @@ -26,7 +26,7 @@ trigger: - platform: state entity_id: input_select.andreas_status - not_to: "Syg" + not_to: "syg" condition: - condition: state entity_id: binary_sensor.arbejdsdagimorgen @@ -45,7 +45,7 @@ trigger: - platform: state entity_id: input_select.daniel_status - to: "Syg" + to: "syg" action: - service: homeassistant.turn_off target: @@ -60,7 +60,7 @@ trigger: - platform: state entity_id: input_select.daniel_status - not_to: "Syg" + not_to: "syg" condition: - condition: state entity_id: binary_sensor.arbejdsdagimorgen @@ -81,10 +81,10 @@ trigger: - platform: state entity_id: input_select.anne_status - to: "Syg" + to: "syg" - platform: state entity_id: input_select.claus_status - to: "Syg" + to: "syg" action: - service: homeassistant.turn_off target: @@ -98,16 +98,16 @@ trigger: - platform: state entity_id: input_select.anne_status - not_to: "Syg" + not_to: "syg" - platform: state entity_id: input_select.claus_status - not_to: "Syg" + not_to: "syg" condition: # Kun genaktiver hvis BEGGE ikke er syge - condition: template value_template: > - {{ not is_state('input_select.anne_status', 'Syg') and - not is_state('input_select.claus_status', 'Syg') }} + {{ not is_state('input_select.anne_status', 'syg') and + not is_state('input_select.claus_status', 'syg') }} - condition: state entity_id: binary_sensor.arbejdsdagimorgen state: "on"