I am trying to setup my underfloor heating system to turn off the boiler when all regions in the house are not actively drawing heat. In order to that, I need to know if each thermostat is actively drawing heat or not (different than if the mode is set to heat, as it could be in heat mode but if the room is already warm enough, it isn’t actively drawing heat).
The Tuya Thermostats I have seem to have the correct variable available in a “work_state” flag that I can see in Tuya’s interface, but it doesn’t get pulled into HA.
I tried switching the mode via Tuya’s interface to “DP Instruction” which I thought would expose it, but it still doesn’t come through. Can anyone advise how I can get access to the value of this flag inside of Home Assistant so I can use it as a condition in an automation?
(I spent the last hour searching the forum and got even more confused; I’m using the default Tuya integration; do I need to switch to something called LocalTuya? What does that mean for my other Tuya devices that are currently working fine?)
Unfortunatelly the workstate sensor is not implemented in HA, but I would like to see it also.
As a workaround you can do thesame, what I did. Implement a virtual switch in tuya’s intergace, which will be visable in HA. Then in the tuya app create two rules. One to turn on the switch when the work state is on of the thermostat, and an other to turn off, is it does not.
I have a similar problem with both of my thermostats - Könighaus Smart & AVATTO Smart Home Thermostat - both of them are not reporting the actual state (heating or not) in Home Assistant. Debugging it through the tuya platform i think there is no indicator at all at the rest api for the state. It seems like the Smart Life app is setting the state purely on the temp difference that is configured but not on the actual state.
Could you not just create an automation that checked if the current_temperature had reached the (target) temperature, and if this has happened in every room, you know to turn off the boiler.
Sure but that would not be correct, the thermostat is always overheating then waits until it falls below a certain degree. this is configurable in the App but can’t be read through the API. In general i find it strange that the thermostat is not reporting it’s actual state only the temperature.
I tried this without success I can add a scene in the smart life app, triggered by the valve state of the thermostate. It has two options: open or closed. Unfortunately nothing happens. I did not find a way to read this state within the app or in the tuya iot platform.
I am pretty sure too, that the valve has more states than open and close as it can keep a certain temperature without opening/closin every 10 minuten (this would drain pretty much battery!) . At installation the thermostate calibrates itself too for the two end positions (0 and 100%)
So there is no a simple “heating” or “off” states but gradual valve positions.
Sorry for sort of hijacking the thread, but I wasn’t able to find the info clearly anywhere. Does the tuya thermostat require the tuya hub to work or is zigbee and HA all I need? Looking at these currently: Tuya Radiátor termosztát ZigBee programozható - AUTO-HOMES -