Syg-status: ret 'Syg' → 'syg' (lowercase) i alle filer

This commit is contained in:
2026-04-24 19:07:41 +02:00
parent df734d9259
commit 9c184ed0b7
6 changed files with 35 additions and 35 deletions
+12 -12
View File
@@ -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"