Hi - I am trying to use pyscript and have managed to set up the jupyter notebook with my homeassistant.
My goal is to controll the thermostat temperatures according to a configutation (a bit like schedy in appdeamon). One thing I should be able to is to set the target temperature of a thermostat /climate entity.
This is done easily from the notebook, but it does not trigger any behaviour on the thermostat.
If I fx set the current temperature is 20 and I set the target temperature to 25 it should turn on heating. The thermostat displays 25 deg but the heater is not turned on. if I adjust the temp to 24.5 it is turned on. What am I missing?
Here is my simple code:
climate.bad.temperature = 25
Then when I run
climate.bad.temperature 25 is printet.
What should I do to get this working?
Thanks
Helge
I think more information is necessary here. There are many possibilities. You could start by telling us more about your thermostat. Then go to Developer tools and click on states. Filter entities by climate.bad and click on that entity in the list. That will show us something like the following and post that here. Then I can get a better idea of your thermostat setup.
It is a Namron floor thermostat on the bathroom (bad). I also tested with a generic_thermostat where the thermostat is constructed by a smartplug and a temp sensor. The generic_thermostat behaved on exactly the same way, no action when I turned the temperature higer than current temperature and you would expect the heat to be turned on
It appears to me that you can’t simply change the state of climate.device.temperature. The thermostat won’t recognize that. Instead you may need to use the service climate.set_temperature and use entity_id: climate.bad as the target.