This commit is contained in:
nocci 2026-01-15 15:44:36 +01:00
parent 810f87a195
commit ff1a4b8073

View file

@ -16,11 +16,13 @@ blueprint:
entity: entity:
domain: schedule domain: schedule
presence_entity: presence_entity:
name: Anwesenheit name: Anwesenheit (optional)
description: Optional, z.B. binary_sensor.presence description: Optional - leer lassen für immer present. z.B. binary_sensor.presence
selector: selector:
entity: entity:
domain: binary_sensor domain: binary_sensor
multiple: false
default: {}
vacation_helper: vacation_helper:
name: Urlaubsmodus Helper name: Urlaubsmodus Helper
description: input_boolean.urlaub description: input_boolean.urlaub
@ -95,7 +97,7 @@ action:
is_winter: "{{ weather_temp < !input winter_temp_threshold }}" is_winter: "{{ weather_temp < !input winter_temp_threshold }}"
is_vacation: "{{ is_state(!input vacation_helper, 'on') }}" is_vacation: "{{ is_state(!input vacation_helper, 'on') }}"
is_present: >- is_present: >-
{%- if !input presence_entity -%} {%- if !input presence_entity or !input presence_entity == '' -%}
true true
{%- else -%} {%- else -%}
{{ is_state(!input presence_entity, 'on') }} {{ is_state(!input presence_entity, 'on') }}