blueprint.yaml aktualisiert

This commit is contained in:
nocci 2026-01-15 15:50:11 +01:00
parent 29e995f436
commit 40b4f655fb

View file

@ -89,7 +89,13 @@ action:
is_winter: "{{ wt | float(0) < [blueprint_input.winter_temp_threshold] | float(10) }}" is_winter: "{{ wt | float(0) < [blueprint_input.winter_temp_threshold] | float(10) }}"
is_vacation: "{{ states(''' + '''!input vacation_helper) == 'on' }}" is_vacation: "{{ states(''' + '''!input vacation_helper) == 'on' }}"
p: "{{ states(''' + '''!input presence_entity) }}" p: "{{ states(''' + '''!input presence_entity) }}"
is_present: "{{ p == '' or p == 'unavailable' or p == 'on' }}" is_present: >-
{%- set p = states('!input presence_entity') -%}
{%- if p == 'unknown' or p == 'unavailable' or !input presence_entity == '' -%}
true
{%- else -%}
{{ p == 'on' }}
{%- endif -%}
schedule_active: "{{ states(''' + '''!input schedule_entity) == 'on' }}" schedule_active: "{{ states(''' + '''!input schedule_entity) == 'on' }}"
- choose: - choose:
- conditions: - conditions: