Syg-status: ret 'Syg' → 'syg' (lowercase) i alle filer
This commit is contained in:
@@ -25,7 +25,7 @@ sections:
|
|||||||
entity: input_select.andreas_status
|
entity: input_select.andreas_status
|
||||||
icon: mdi:account-heart
|
icon: mdi:account-heart
|
||||||
icon_color: >
|
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
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
@@ -40,7 +40,7 @@ sections:
|
|||||||
entity: input_select.daniel_status
|
entity: input_select.daniel_status
|
||||||
icon: mdi:account-heart
|
icon: mdi:account-heart
|
||||||
icon_color: >
|
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
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
@@ -55,7 +55,7 @@ sections:
|
|||||||
entity: input_select.anne_status
|
entity: input_select.anne_status
|
||||||
icon: mdi:account-heart
|
icon: mdi:account-heart
|
||||||
icon_color: >
|
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
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
@@ -70,7 +70,7 @@ sections:
|
|||||||
entity: input_select.claus_status
|
entity: input_select.claus_status
|
||||||
icon: mdi:account-heart
|
icon: mdi:account-heart
|
||||||
icon_color: >
|
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
|
# 🗺️ Popup kort
|
||||||
- type: grid
|
- type: grid
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{{ not is_state('input_select.anne_status', 'Syg') and
|
{{ not is_state('input_select.anne_status', 'syg') and
|
||||||
not is_state('input_select.claus_status', 'Syg') }}
|
not is_state('input_select.claus_status', 'syg') }}
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_on
|
- service: homeassistant.turn_on
|
||||||
entity_id: switch.sonos_alarm_1782
|
entity_id: switch.sonos_alarm_1782
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
entity_id: binary_sensor.arbejdsdagimorgen
|
entity_id: binary_sensor.arbejdsdagimorgen
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ not is_state('input_select.andreas_status', 'Syg') }}"
|
value_template: "{{ not is_state('input_select.andreas_status', 'syg') }}"
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_on
|
- service: homeassistant.turn_on
|
||||||
entity_id: switch.sonos_alarm_445
|
entity_id: switch.sonos_alarm_445
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
- condition: template
|
- condition: template
|
||||||
value_template: '{{ now().date() | string != "2022-12-31" }}'
|
value_template: '{{ now().date() | string != "2022-12-31" }}'
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ not is_state('input_select.andreas_status', 'Syg') }}"
|
value_template: "{{ not is_state('input_select.andreas_status', 'syg') }}"
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_on
|
- service: homeassistant.turn_on
|
||||||
entity_id: switch.sonos_alarm_1874
|
entity_id: switch.sonos_alarm_1874
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
entity_id: binary_sensor.arbejdsdagimorgen
|
entity_id: binary_sensor.arbejdsdagimorgen
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ not is_state('input_select.daniel_status', 'Syg') }}"
|
value_template: "{{ not is_state('input_select.daniel_status', 'syg') }}"
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_on
|
- service: homeassistant.turn_on
|
||||||
entity_id: switch.sonos_alarm_377
|
entity_id: switch.sonos_alarm_377
|
||||||
@@ -114,7 +114,7 @@
|
|||||||
entity_id: binary_sensor.arbejdsdagimorgen
|
entity_id: binary_sensor.arbejdsdagimorgen
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ not is_state('input_select.daniel_status', 'Syg') }}"
|
value_template: "{{ not is_state('input_select.daniel_status', 'syg') }}"
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_on
|
- service: homeassistant.turn_on
|
||||||
entity_id: switch.sonos_alarm_1894
|
entity_id: switch.sonos_alarm_1894
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
entity_id: binary_sensor.arbejdsdagimorgen
|
entity_id: binary_sensor.arbejdsdagimorgen
|
||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ not is_state('input_select.daniel_status', 'Syg') }}"
|
value_template: "{{ not is_state('input_select.daniel_status', 'syg') }}"
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_on
|
- service: homeassistant.turn_on
|
||||||
entity_id: switch.sonos_alarm_2273
|
entity_id: switch.sonos_alarm_2273
|
||||||
@@ -170,7 +170,7 @@
|
|||||||
- condition: template
|
- condition: template
|
||||||
value_template: '{{ now().date() | string != "2022-12-31" }}'
|
value_template: '{{ now().date() | string != "2022-12-31" }}'
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ not is_state('input_select.daniel_status', 'Syg') }}"
|
value_template: "{{ not is_state('input_select.daniel_status', 'syg') }}"
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_on
|
- service: homeassistant.turn_on
|
||||||
entity_id: switch.sonos_alarm_3471
|
entity_id: switch.sonos_alarm_3471
|
||||||
@@ -195,8 +195,8 @@
|
|||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{{ not is_state('input_select.anne_status', 'Syg') and
|
{{ not is_state('input_select.anne_status', 'syg') and
|
||||||
not is_state('input_select.claus_status', 'Syg') }}
|
not is_state('input_select.claus_status', 'syg') }}
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_on
|
- service: homeassistant.turn_on
|
||||||
entity_id: switch.sonos_alarm_298
|
entity_id: switch.sonos_alarm_298
|
||||||
@@ -224,8 +224,8 @@
|
|||||||
state: 'on'
|
state: 'on'
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{{ not is_state('input_select.anne_status', 'Syg') and
|
{{ not is_state('input_select.anne_status', 'syg') and
|
||||||
not is_state('input_select.claus_status', 'Syg') }}
|
not is_state('input_select.claus_status', 'syg') }}
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_on
|
- service: homeassistant.turn_on
|
||||||
entity_id: switch.sonos_alarm_1899
|
entity_id: switch.sonos_alarm_1899
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
# Ikke syg
|
# Ikke syg
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ not is_state('input_select.andreas_status', 'Syg') }}"
|
value_template: "{{ not is_state('input_select.andreas_status', 'syg') }}"
|
||||||
|
|
||||||
sequence:
|
sequence:
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
after: '06:30:00'
|
after: '06:30:00'
|
||||||
before: '19:30:00'
|
before: '19:30:00'
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ not is_state('input_select.daniel_status', 'Syg') }}"
|
value_template: "{{ not is_state('input_select.daniel_status', 'syg') }}"
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_on
|
- service: homeassistant.turn_on
|
||||||
target:
|
target:
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
after: '10:00:00'
|
after: '10:00:00'
|
||||||
before: '19:45:00'
|
before: '19:45:00'
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: "{{ not is_state('input_select.daniel_status', 'Syg') }}"
|
value_template: "{{ not is_state('input_select.daniel_status', 'syg') }}"
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_on
|
- service: homeassistant.turn_on
|
||||||
target:
|
target:
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
before: '20:00:00'
|
before: '20:00:00'
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{{ not is_state('input_select.anne_status', 'Syg') and
|
{{ not is_state('input_select.anne_status', 'syg') and
|
||||||
not is_state('input_select.claus_status', 'Syg') }}
|
not is_state('input_select.claus_status', 'syg') }}
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_on
|
- service: homeassistant.turn_on
|
||||||
target:
|
target:
|
||||||
@@ -53,8 +53,8 @@
|
|||||||
before: '20:00:00'
|
before: '20:00:00'
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >-
|
value_template: >-
|
||||||
{{ not is_state('input_select.anne_status', 'Syg') and
|
{{ not is_state('input_select.anne_status', 'syg') and
|
||||||
not is_state('input_select.claus_status', 'Syg') }}
|
not is_state('input_select.claus_status', 'syg') }}
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_on
|
- service: homeassistant.turn_on
|
||||||
target:
|
target:
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
##################################################
|
##################################################
|
||||||
# Syg-status: sluk alarmer + motion-lys ved sygdom
|
# Syg-status: sluk alarmer + motion-lys ved sygdom
|
||||||
#
|
#
|
||||||
# Triggeres af input_select.PERSON_status → "Syg"
|
# Triggeres af input_select.PERSON_status → "syg"
|
||||||
# Genaktiverer alarmer når status ikke længere er "Syg"
|
# Genaktiverer alarmer når status ikke længere er "syg"
|
||||||
# Motion-lys håndteres via conditions i lys_*.yaml
|
# Motion-lys håndteres via conditions i lys_*.yaml
|
||||||
##################################################
|
##################################################
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: input_select.andreas_status
|
entity_id: input_select.andreas_status
|
||||||
to: "Syg"
|
to: "syg"
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_off
|
- service: homeassistant.turn_off
|
||||||
target:
|
target:
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: input_select.andreas_status
|
entity_id: input_select.andreas_status
|
||||||
not_to: "Syg"
|
not_to: "syg"
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.arbejdsdagimorgen
|
entity_id: binary_sensor.arbejdsdagimorgen
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: input_select.daniel_status
|
entity_id: input_select.daniel_status
|
||||||
to: "Syg"
|
to: "syg"
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_off
|
- service: homeassistant.turn_off
|
||||||
target:
|
target:
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: input_select.daniel_status
|
entity_id: input_select.daniel_status
|
||||||
not_to: "Syg"
|
not_to: "syg"
|
||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.arbejdsdagimorgen
|
entity_id: binary_sensor.arbejdsdagimorgen
|
||||||
@@ -81,10 +81,10 @@
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: input_select.anne_status
|
entity_id: input_select.anne_status
|
||||||
to: "Syg"
|
to: "syg"
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: input_select.claus_status
|
entity_id: input_select.claus_status
|
||||||
to: "Syg"
|
to: "syg"
|
||||||
action:
|
action:
|
||||||
- service: homeassistant.turn_off
|
- service: homeassistant.turn_off
|
||||||
target:
|
target:
|
||||||
@@ -98,16 +98,16 @@
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: input_select.anne_status
|
entity_id: input_select.anne_status
|
||||||
not_to: "Syg"
|
not_to: "syg"
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: input_select.claus_status
|
entity_id: input_select.claus_status
|
||||||
not_to: "Syg"
|
not_to: "syg"
|
||||||
condition:
|
condition:
|
||||||
# Kun genaktiver hvis BEGGE ikke er syge
|
# Kun genaktiver hvis BEGGE ikke er syge
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{{ not is_state('input_select.anne_status', 'Syg') and
|
{{ not is_state('input_select.anne_status', 'syg') and
|
||||||
not is_state('input_select.claus_status', 'Syg') }}
|
not is_state('input_select.claus_status', 'syg') }}
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.arbejdsdagimorgen
|
entity_id: binary_sensor.arbejdsdagimorgen
|
||||||
state: "on"
|
state: "on"
|
||||||
|
|||||||
Reference in New Issue
Block a user