From 40b4f655fb88573b98f5e3005a33ab58eb8fe1df Mon Sep 17 00:00:00 2001 From: nocci Date: Thu, 15 Jan 2026 15:50:11 +0100 Subject: [PATCH] blueprint.yaml aktualisiert --- blueprint.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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: