Replies: 5 comments 3 replies
-
Hello @bwip , Have you look at this ? https://github.com/jmcollin78/solar_optimizer. This can help for your usecase by changing preset ou temperature. What you need is not to block the underlying but the Scheduler which will overwrite your preset change, I guess. What I suggest is to:
|
Beta Was this translation helpful? Give feedback.
-
Thank you for pointing me to your solar_optimizer. Will definitely, have a look in it once I can invest in solar + battery. Switching of the scheduler is an option, however then the last schedule action is not resumed. E.g.:
I could work around with persisting the last temperature in a helper, but it would be more convenient if there would be a switch like in https://github.com/ScratMan/HASmartThermostat called force_off_state = False not to touch the underlying when thermostat is OFF. I also run the smartthermostat for the rooms with floor tiles. I like your implementation more, because of the UI and the window detection feature. Nevertheless, the TPI algorithm does not work well with tiled floors. During heat up, the floor temp. has a lot of inertia. Than the temperature rises fast. At this point the thermostat needs to stop heating. With the PID controller in smartthermostat this works fine (high weight to the derivate term). Without this derivate term the controller would behave like your TPI controller, which would still heat a little bit until the proportional term gets smaller and smaller. This increases the overshoot of temperature however. I would appreciate and test if you could add this little switch once you touch the code again. |
Beta Was this translation helpful? Give feedback.
-
You are right, the documentation of the scheduler card mentions:
If a custom temperature is set before, it is then reverted to the preset temp. defined. That is okay. I will disable and reenable the scheduler entity in my automation. Nevertheless, i still think the proposed setting would make sense. Would it go in this method: start_cycle in underlyings.py?
|
Beta Was this translation helpful? Give feedback.
-
Hello, Let see if other people are interested. You have another solution which is working out of the box. |
Beta Was this translation helpful? Give feedback.
-
Let's see if there is common interest. The workaround to disable the scheduler is fine too. If it is a low hanging fruit in your next coding session, then I would appriciate if you go for it. Another small advantages would be that I could switch easily between the generic thermostat, the smart thermostat and the versatile thermostat. Just put the one you don't want to use to OFF and force_off_state = False. Both the smart and the versatile thermostat have advantages. PID controller vs window open detection and the really confortable UI. Nevertheless, thank you for your great work you are doing here. |
Beta Was this translation helpful? Give feedback.
-
Is there a setting to change the behavior when the thermostat is off to not change the underlying entity?
The use case would be to be able to control the underlying switch with a handcrafted automation.
For example when thermal solar is running, I would like to quickly turn off versatile thermostat to control the valve switches via an automation. The reason behind is, that I want to overheat the underfloor heating a little bit to "store" the heat.
Now, the behavior seems to switch the underlying off if the underlying is active. I know I could change the preset on the thermostat too but this inconveniently interferes with the heating target temperature scheduler (scheduler-component).
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions