diff --git a/scripts.yaml b/scripts.yaml index 6defcdb..26fa2dc 100644 --- a/scripts.yaml +++ b/scripts.yaml @@ -49,6 +49,13 @@ give_me_darkness: - nursery - downstairs_bathroom data: {} + - condition: template + value_template: > + {% if is_state('input_boolean.work_today','on') and state_attr('input_datetime.tina_workday_end','timestamp') > 75600 %} + false + {% else %} + true + {% endif %} - service: script.security_arm_home mode: single icon: mdi:weather-night