so we have an office and heating is controlled by generic thermostat.
right now I switch it from away temp to boost temp by automation at 4am so its cozy at 8am when we switch to target temp.
but now its getting warmer and we need less boost heating time. how could I set that time in the automation based on the current room temp (below target temp)?
for 3k under target I need 1 hour, for 10K under target I need 8h. for starters I would go with 0,33 * Kelvin2 and the result should be deducted from 8am (thats able to go past midnight on Mondays when the office had time to cool off the whole WE)
For starters you could just set the thermostat to fixed Room temperature , lets say 15 degree Celsius, then it’s just the outside temperature you have to take in consideration ( thou i don’t see that you include outside temperature as a factor, so i guess, it’s not affecting the Room temperature ) so then it would be a simple equation to warm it to a “cosy” temperature at decided time.
for the boost only by your code, right? (and adjust the sensor of course)
could I somehow pull the target temp from the generic thermostat? otherwise I would need to adjust two settings IF I would like change it. Down the road in a year I for sure would forget the one in the automation… so is there a way to set the values for both positions at the same place once?
Looking through the docs for Generic Thermostat, it looks like it should create a sensor for target temp so check in your sensor entities to see if there’s something that matches.
That shouldn’t be the reason… the docs say the sensor is a required part of the config, so you must have one. Check your config file and see what you have there under the entry for your thermostat.
no that is the entity providing the current room temperature to the generic thermostat.
what i need in the automation is what is set under target_temp in this case that is 21.5 (°C)
the set target temp is the temperature the generic thermostat is set when HA is rebooted or if the mode is set to “none”, there are other temp pre sets like “away” or in my case “comfort” that are triggered by the automation. so during winter, the thermostat is always in heating = on, but I adjust the temps by the automation. between boost (comfort), normal (none) and nobody-in-office (away)