blueprint.yaml aktualisiert
This commit is contained in:
parent
29e995f436
commit
40b4f655fb
1 changed files with 7 additions and 1 deletions
|
|
@ -89,7 +89,13 @@ action:
|
|||
is_winter: "{{ wt | float(0) < [blueprint_input.winter_temp_threshold] | float(10) }}"
|
||||
is_vacation: "{{ states(''' + '''!input vacation_helper) == 'on' }}"
|
||||
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' }}"
|
||||
- choose:
|
||||
- conditions:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue