diff --git a/blueprint.yaml b/blueprint.yaml index ef615b8..66df46a 100644 --- a/blueprint.yaml +++ b/blueprint.yaml @@ -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: