Add independent fan scheduling for K's bedroom

This commit is contained in:
2023-03-07 17:41:14 -05:00
parent ac33700022
commit 32d3a17aa6
2 changed files with 18 additions and 1 deletions

Submodule node-red/projects/NerdFlows updated: e666ca4af9...bffece5382

View File

@ -19,6 +19,11 @@ input_datetime:
has_date: false
has_time: true
icon: mdi:bell-alert
kallen_fan:
name: Kallen Fan
has_date: false
has_time: true
icon: mdi:fan-auto
master_bedroom_cooling:
name: Master Bedroom Cooling
has_date: false
@ -261,6 +266,18 @@ script:
{% else %}
White Noise
{% endif %}
- delay:
seconds: 1
- service: input_datetime.set_datetime
target:
entity_id: input_datetime.kallen_fan
data:
time: >
{% if is_state('input_boolean.hot_day','on') %}
{{ (state_attr('input_datetime.kallen_bedtime','timestamp') - 3600) | timestamp_custom('%H:%M', false) }}
{% else %}
{{ state_attr('input_datetime.kallen_bedtime','timestamp') | timestamp_custom('%H:%M', false) }}
{% endif %}
house_scheduling_morning:
alias: 'House Scheduling Morning'