Heating dashboard: tile cards, input_number sliders, vacation pre-heat 2 days before return
This commit is contained in:
@@ -56,3 +56,28 @@
|
||||
# Vent til integrationer er loaded
|
||||
- delay: "00:01:00"
|
||||
- service: script.varme_recalculate
|
||||
|
||||
- alias: "Varme - Ferieopvarmning: Start 2 dage før hjemkomst"
|
||||
id: varme_ferie_forvarm
|
||||
description: >
|
||||
Slår vacation_mode fra 2 dage inden vacation_end så huset er
|
||||
varmt ved hjemkomst. Kører dagligt kl. 06:00.
|
||||
trigger:
|
||||
- platform: time
|
||||
at: "06:00:00"
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: input_boolean.vacation_mode
|
||||
state: "on"
|
||||
- condition: template
|
||||
value_template: >
|
||||
{% set end = states('input_datetime.vacation_end') %}
|
||||
{% if end not in ['unknown', 'unavailable', ''] %}
|
||||
{{ 0 < (as_timestamp(end) - as_timestamp(now())) < (2 * 86400) }}
|
||||
{% else %}
|
||||
false
|
||||
{% endif %}
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.vacation_mode
|
||||
|
||||
Reference in New Issue
Block a user