diff --git a/node-red/projects/NerdFlows b/node-red/projects/NerdFlows index e666ca4..bffece5 160000 --- a/node-red/projects/NerdFlows +++ b/node-red/projects/NerdFlows @@ -1 +1 @@ -Subproject commit e666ca4af900bd7162527ef7023f295561277da8 +Subproject commit bffece53827e3a47f058066723e3fccd351c0e5f diff --git a/packages/scheduling.yaml b/packages/scheduling.yaml index 1bb3288..b3806d5 100644 --- a/packages/scheduling.yaml +++ b/packages/scheduling.yaml @@ -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'