Syg-status: ret 'Syg' → 'syg' (lowercase) i alle filer
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user