setting posts programmatically #836
-
Firstly, thanks for all your great work with this and sorry to be asking yet another question! I set the comfort preset using the following
But on the vtherm it still shows 17 But when I look at the device state, it shows 20, with no mention of 17. So will it be doing 20 or 17? And why the discrepancy
I tried disabling /enabling the vtherm and it still shows 17. I just set comfort and eco to 10 and 11 in the ui, but in the device tools/states they're both showing as 16 Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
This is really odd. I just set them in the ui to 16 and now in states they're showing as 10 and 11. It seems they are taking the previous values? Or am I not understanding the state inspector? I'm refreshing every time I look... |
Beta Was this translation helpful? Give feedback.
-
To change the temperature number of a preset (that is what you want to do if I understand well), you should use the number.set_value action targeting the number entity of the temp preset. The |
Beta Was this translation helpful? Give feedback.
-
In fact it works as expected but this has temporary effect. The temperature of the preset is changed but when the VTherm is reloaded it keeps its value from the number entity. So this is expected as describe here: https://github.com/jmcollin78/versatile_thermostat/blob/main/documentation/en/reference.md#modify-the-preset-temperature If you want permanent effect, change the number entity of the preset. |
Beta Was this translation helpful? Give feedback.
-
That worked. |
Beta Was this translation helpful? Give feedback.
In fact it works as expected but this has temporary effect. The temperature of the preset is changed but when the VTherm is reloaded it keeps its value from the number entity.
So this is expected as describe here: https://github.com/jmcollin78/versatile_thermostat/blob/main/documentation/en/reference.md#modify-the-preset-temperature
If you want permanent effect, change the number entity of the preset.