Syg-status: sluk alarmer+motion lys, kompakt person view
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdagimorgen
|
||||
state: 'on'
|
||||
- condition: template
|
||||
value_template: >-
|
||||
{{ 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
|
||||
@@ -31,6 +35,8 @@
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdagimorgen
|
||||
state: 'on'
|
||||
- condition: template
|
||||
value_template: "{{ not is_state('input_select.andreas_status', 'Syg') }}"
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: switch.sonos_alarm_445
|
||||
@@ -58,6 +64,8 @@
|
||||
value_template: '{{ now().date() | string != "2022-12-24" }}'
|
||||
- condition: template
|
||||
value_template: '{{ now().date() | string != "2022-12-31" }}'
|
||||
- condition: template
|
||||
value_template: "{{ not is_state('input_select.andreas_status', 'Syg') }}"
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: switch.sonos_alarm_1874
|
||||
@@ -78,6 +86,8 @@
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdagimorgen
|
||||
state: 'on'
|
||||
- condition: template
|
||||
value_template: "{{ not is_state('input_select.daniel_status', 'Syg') }}"
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: switch.sonos_alarm_377
|
||||
@@ -103,6 +113,8 @@
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdagimorgen
|
||||
state: 'on'
|
||||
- condition: template
|
||||
value_template: "{{ not is_state('input_select.daniel_status', 'Syg') }}"
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: switch.sonos_alarm_1894
|
||||
@@ -128,6 +140,8 @@
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdagimorgen
|
||||
state: 'on'
|
||||
- condition: template
|
||||
value_template: "{{ not is_state('input_select.daniel_status', 'Syg') }}"
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: switch.sonos_alarm_2273
|
||||
@@ -155,6 +169,8 @@
|
||||
value_template: '{{ now().date() | string != "2022-12-24" }}'
|
||||
- condition: template
|
||||
value_template: '{{ now().date() | string != "2022-12-31" }}'
|
||||
- condition: template
|
||||
value_template: "{{ not is_state('input_select.daniel_status', 'Syg') }}"
|
||||
action:
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: switch.sonos_alarm_3471
|
||||
@@ -177,6 +193,10 @@
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdagimorgen
|
||||
state: 'on'
|
||||
- condition: template
|
||||
value_template: >-
|
||||
{{ 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
|
||||
@@ -202,6 +222,10 @@
|
||||
- condition: state
|
||||
entity_id: binary_sensor.arbejdsdagimorgen
|
||||
state: 'on'
|
||||
- condition: template
|
||||
value_template: >-
|
||||
{{ 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
|
||||
|
||||
Reference in New Issue
Block a user