For my cottage I set the temp down to 10c when not there, then on the day I head up I turn the heat up to 20 early in the day.
Recently put in a heat pump as main heat, with how it works if the set temp is more then 2 deg higher then the current temp then it kicks the secondary heating on.
Trying to set an automation so I can have it incrementally increase the set temp by 1 deg until it hits 20deg.
I can do the 1 deg increase I am just not sure the best way to have it repeat itself and have it stop at a set point.
automation:
- alias: heating_climb
id: "heating_climb"
description: ''
mode: queued # ??
variables: # might not need this
from: "{{ trigger.from_state.state }}" # might not need this
to: "{{ trigger.to_state.state }}" # might not need this
trigger:
- platform: state
entity_id: sensor.heating_current_temp
condition:
- condition: template # might not need this
value_template: "{{ from != to }}" # might not need this
- condition: template
value_template: "{{ states('sensor.thermostat_current_temp == ( states('sensor.thermostat_target_temp }}" # temp will not increase
- condition: template
value_template: "{{ states('sensor.thermostat_current_temp < ( states('sensor.heating_target_temp -1 ) }}" # temp is still below target
action :
- service: climate.set_temperature
data_template:
temperature: "{{ states('sensor.thermostat_current_temp +1 ) }}"
entity_id: climate.thermostat
You may need to use |round() or |int() in the templates.
Giving me indentation error at the Current_temperature part of āstate: ā{{ state_attr(āclimate.thermostatā,ācurrent_temperatureā) }}ā. ### yours may varyā
@jchh Wowā¦ you really know your automation magic! Perhaps you can help as I have a similar situation.
Iām chasing a nasty problem with my pellet stove and itās driving me absolutely nuts for the past year. The stove will randomly and for no apparent reason turn itself completely off. Iāve replaced all temp sensors, main board, and control board with the help of the vendor support to no avail. I think there is just some shoddy programming in this unit.
Soā¦ Iām brute force fixing it with HA. The stoveās Tuya based climate entity incorrectly reports the current temp as -4 degrees at all times (more shoddy tuya platform coding) so I built an esphome temp sensor that I put in the same room and that gives me current temp. I can read set temp from the tuya values, and luckily I can turn the stove back on via a Tuya command.
Iād like to create an automation that mimics a thermostat, since I canāt use the thermostat entity without a working current temp. Basically I want to turn the stove on when current temp is 5 degrees less than set temp. That means itās failed as the stove normally has a 3 degree āback onā differential from its set temp, when itās working correctly. Hereās what I have:
As you can see, itās currently working ok as the temp diff is 68-65.5=2.5 degrees.
My current automation works, but only at a fixed temp. I really want to chase the set temp and turn it on when itās 5 degrees less than set temp (my wife changes it all the time)
id: '1647433044968'
alias: On Error, Turn wood stove on.
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.house_temperature
below: 60
condition: []
action:
- service: climate.set_hvac_mode
data:
hvac_mode: heat
target:
entity_id:
- climate.big_house_wood_pellet_stove
- service: notify.mobile_app_jeffs_iphone_se
data:
message: Wood stove turned on due to Living room <60
This automation will be the basis for controlling the new Esphome firmware I finally flashed in my test bench Tuya MCU unit yesterday once I can solve several problems there. That is a saga in and of itself! Thereās another guy battling the same thing I am so this will all be worth it for both of us.
The problem is that this could trigger every time sensor.house_temperature changes and is also 5 degrees below sensor.set_temp. We can avoid that by adding the condition that the trigger_from state must also be greater than 5 degrees less. soā¦
By the way, I have a Hive controller for my heating (heat and water, no cooling). I still use the Hive hub and Hive integration but am about to dump that and switch entirely to local control (via Z2M).
Even though I am using the (cloud based) Hive integration I control my heating & water 100% within HA and youāre welcome to have my package and dashboard that does it. Youād need to customise it for your situation but the logic is all there. My dash looks like thisā¦
I also have a āread onlyā single button version of the 4 mode buttons (in a vertical-stack in the top left hand corner to the left of the thermostat) which I use in other dashboards so I can always see what is going on. I rarely have to visit this page, but it is where I have my settings and diagnostics.
The 4 modes are:
Off.
On. 3 temps set based on whether the house is āawakeā, asleepā, I am āawayā (for a couple of hours) and just adding when I am āon holidayā (away for days). I press a button at night which puts the house āasleepā (sets lights to dim if activated by motion, sets the heating, turns off day-only devices etc). āAwakeā is set by the first motion downstairs after 7am. āAwayā is set using person.james: not_home but could also be set by zone.home state: 0 (for multiple people).
Schedule. 4 possible temp/time windows with a minimum temp for outside those windows. Temp also drops when I am away. Easily adjustable to be less or more windows.
Boost. Can set the relative temp increase and the boost time. Not effected by my presence.
Ok, now youāre getting me excited! That looks exactly like what I need to figure out. My stove also has 4 modes and 2 eco settings. The datapoints that come out of esphome are all there and I can see them, and Iāve mapped them. I just need to figure out how to get them into a useable format so I can control them. The thread I mentioned is where that fun is unfolding.
Thereās another guy whoās done amazing things with his thermostat
yep, sorry - forgot to add the |float() to convert from a string to a real number so you can then add ā5ā to it.
Note I have selected 0 and 99 as the default values. So the automation will go off if the sensors fail for any reason. You can change that if you want.