I would like to create a button on dash board which when pressed turns on the heating for an hour and then turns off my heating automation which is already running. After the hour period. The boost button stops and the automation for the heating will carry on as normal. Simulating the boost option you get on a standard thermostat.
I have had no luck just going round in circles any ideas would be very much appreciated
Hiya
I used an automation that uses a timer to do this. I have a 1 hr boost button and a 2 hr boost button.
this is my automation
alias: Heating Boost (1hr)
description: "Turn Heating On, set temp of 22 for 1 hr then turn off. "
trigger:
- platform: state
entity_id:
- input_button.heating_1hr_boost
id: Heating 1hr boost start
- platform: event
event_type: timer.finished
event_data:
entity_id: timer.1_hr_heating_timer
id: Heating 1hr boost stopped
condition:
- condition: state
entity_id: binary_sensor.anyone_home
state: "on"
action:
- choose:
- conditions:
- condition: state
entity_id: climate.heating
state: "off"
- condition: trigger
id: Heating 1hr boost start
sequence:
- service: timer.start
data: {}
target:
entity_id: timer.1_hr_heating_timer
- service: climate.turn_on
data: {}
target:
entity_id: climate.heating
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- service: climate.set_temperature
data:
temperature: 22
hvac_mode: heat
target:
entity_id: climate.heating
- service: tts.cloud_say
data:
entity_id: media_player.kitchen_display
message: One hour heating boost is on
cache: true
- service: notify.ally_paul_devices
data:
message: 1 hr Heating Boost is on
title: Heating
- service: persistent_notification.create
data:
message: 1 Hr Heating Boost is On
title: Heating
notification_id: "001"
- conditions:
- condition: trigger
id: Heating 1hr boost stopped
sequence:
- service: climate.turn_off
data: {}
target:
entity_id: climate.heating
- service: notify.ally_paul_devices
data:
message: 1 Hr Heating Boost is Off
title: Heating
- service: persistent_notification.create
data:
message: Heating Is off
title: Heating
notification_id: "001"
- service: tts.cloud_say
data:
entity_id: media_player.kitchen_display
message: Heating Boost is off
mode: single
This also checks to see if we are home and sends notification when it starts and when it stops. i also have another button that can cancel timers and boost.
It works quite well. it probally could be done better but it work๐
cheers mate
that looks awesome. ill look at trying to use it. have you created a list of devices call ally_paul_devices? and what is rrs.cloud_say used for mate
the tts.cloud_say is to anounce it on my wee google display. i also do a persistant notification in home assistant. that also shows on phone. just lets ya see when it starts and finishes
You also need a wee timer helper setup for each boost. set them up in your devices&services/helpers
i had to re do my dashboard and trying to re do this as it was good before. can you see below any reason why this wont call the 4 rooms to heat when i press run on the automation.
id: โ1731712576558โ
alias: heating boost automation 1 hour
description: 'Turn Heating On, set temp of 22 for 1 hr then turn off. โ
triggers:
entity_id:
input_button.heating_1hr_boost
id: Heating 1hr boost start
trigger: state
from: โoffโ
to: โonโ
actions: