Edited master bedroom fan script to be a little cleaner
This commit is contained in:
@@ -478,17 +478,17 @@
|
|||||||
id: master-bedroom-wakeup
|
id: master-bedroom-wakeup
|
||||||
condition: []
|
condition: []
|
||||||
action:
|
action:
|
||||||
- if:
|
- choose:
|
||||||
- condition: trigger
|
- conditions:
|
||||||
id: master-bedroom-cooling
|
- condition: trigger
|
||||||
then:
|
id: master-bedroom-cooling
|
||||||
- choose:
|
sequence:
|
||||||
- conditions:
|
- if:
|
||||||
- condition: numeric_state
|
- condition: numeric_state
|
||||||
entity_id: sensor.current_forecast
|
entity_id: sensor.current_forecast
|
||||||
attribute: overnight_low
|
attribute: overnight_low
|
||||||
above: '40'
|
above: '40'
|
||||||
sequence:
|
then:
|
||||||
- service: fan.turn_on
|
- service: fan.turn_on
|
||||||
data: {}
|
data: {}
|
||||||
target:
|
target:
|
||||||
@@ -504,16 +504,31 @@
|
|||||||
title: Fan Schedule Activated
|
title: Fan Schedule Activated
|
||||||
message: Master bedroom fan has been activated, as scheduled based on
|
message: Master bedroom fan has been activated, as scheduled based on
|
||||||
tonight's forecast low
|
tonight's forecast low
|
||||||
default:
|
else:
|
||||||
- parallel:
|
- parallel:
|
||||||
- service: script.text_notify_tony
|
- service: script.text_notify_tony
|
||||||
data:
|
data:
|
||||||
title: Fan Schedule Skipped
|
title: Fan Schedule Skipped
|
||||||
message: Too cold outside, fan not activated
|
message: Too cold outside, fan not activated
|
||||||
- service: script.text_notify_tina
|
- service: script.text_notify_tina
|
||||||
data:
|
data:
|
||||||
title: Fan Schedule Skipped
|
title: Fan Schedule Skipped
|
||||||
message: Too cold outside, fan not activated
|
message: Too cold outside, fan not activated
|
||||||
|
- conditions:
|
||||||
|
- condition: trigger
|
||||||
|
id: master-bedroom-wakeup
|
||||||
|
sequence:
|
||||||
|
- service: fan.turn_off
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: fan.master_bedroom_fan_socket_1
|
||||||
|
default:
|
||||||
|
- service: script.text_notify_tony
|
||||||
|
data:
|
||||||
|
title: Master Bedroom Info
|
||||||
|
message: '"Today''s wakeup time is set to {{ states(''input_datetime.master_bedroom_wakeup'')
|
||||||
|
}} and tonight''s cooling is set to start at {{ states(''input_datetime.master_bedroom_cooling'')
|
||||||
|
}}"'
|
||||||
- if:
|
- if:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id: master-bedroom-wakeup
|
id: master-bedroom-wakeup
|
||||||
|
|||||||
Reference in New Issue
Block a user