Added condition for when wife works late
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user