dfrommi / openhab-tado

No longer maintained. This binding is now part of the official openHAB distribution
https://github.com/openhab/openhab2-addons/tree/master/addons/binding/org.openhab.binding.tado
MIT License
6 stars 1 forks source link

Get target #7

Closed Scoobler closed 6 years ago

Scoobler commented 6 years ago

I am trying to get the target temp, i want to be able to graph both the current temp and the schedules target temp.

I am also looking to solve an issue with tado, I started with a smart stat and an extension kit. The extension kit controls the boiler, if the stat asks for heat the extension kit starts the boiler, if the schedule asks for hot water the extension starts the boiler. However when the smart stat asks for heat it smarts the central heating pump. Issue i now have is i added radiator stats, but when they ask for heat only the extension kit starts the boiler the smart stat doesnt start the pump. Trouble is if the radiator stats local to the smart stat reach temp they close up and the room stat leave the boiler running but the temp wont increase, alternatively if the rad stat wants to increase the room temp but the smart stat is upto temp it doesnt work.

My plan is, openHab reads the target temp of each zone (rad stat), if its higher than the current temp, raise the target temp of the smart stat, that way the pump runs and the radiator gets its heat. Ive tested the theory, but im having to use a HTTP call to the API as i cant find the target temp from the binding.

dfrommi commented 6 years ago

Sorry, but I don't understand what's your actual question is.

Nevertheless, here a few random ideas on the points you're describing:

About graphs with current and target temperature: the binding has currentTemperature and targetTemperature channels. Once persisted, they can be used to create charts.

Regarding the EK, ST, SRT setup: though I'm not entirely sure how the setup looks like, it sounds like your zones are not configured correctly. You should probably contact tado customer support first and let them check the duties of your devices in the zones.

Last section I don't understand. What HTTP call are you talking about? Do you want to set the target temperature of a device instead of a zone? That's not going to work. There's nothing like a target temperature of a device. Devices are UIs for zones and so they just control zone target temperature. Something you can already do with the binding.

Hope I could help a bit.

dfrommi commented 6 years ago

Closing due to inactivity

Scoobler commented 6 years ago

Hi Dennis,

Sorry I haven't replied earlier! Thank-you for closing this!

Just to explain my original ramblings (frustrated day and very little help from Tado) - I have had Tado working for around 2.5 years with the Smart Stat and the Extension kit. My heating system is otherwise very old (around 1960's-1970's). There is the boiler which gets a 240v run signal from the Extension kit. Whenever the boiler is on, the hot water is on (convection). The central heating pump takes a 240v feed from the Smart Stat (and the Smart Stat tells the Extension kit to run the boiler) - trouble is if the central heating is on (pumped) it takes all the heat and the hot water gets nothing - not so much a problem as it just means setting the schedule correctly i.e. each zone off for a set amount of time while hot water schedule is on.

I have been using a HTTP call to query the Tado v1 API, the unofficial one that was found listening to traffic from the App, while it didn't let you control anything, you could get the temp and target temp for example which I used to graph, I was having trouble getting the Target Temp from the binding, but realised it was a mistake I had made in my item file/sitemap (I had been showing the Target Temp as a SetPoint, and not included the value in the label [%.1f°C] so wasn't seeing the value from Tado) - so graphing is all working fine.

When I decided to upgrade to having the Tado TRV's I found there is a flaw in the Tado system - the TRV's will tell the extension kit they require heat, which in my case means the boiler is switched on, however as it is the Smart Stat which controls the central heating pump, the TRV could ask all it wants for heat, and the boiler would run but the central heating pump would not so the heat would never get to the radiator (just lots of hot water!). The other issue I have is, as I need the Smart Stat to control the pump, if the TRV local to decided it was up to temp, but the Smart Stat wasn't, the central heating would be running away and the room not getting any warmer (bathroom is a heat sink so the rad is always on, no TRV - so I'd end up with a very warm bathroom).

Tado's response is simply to rewire the heating system so the Extension kit can control both the boiler and pump - a lot easier said than done! So I have come up with a rule which runs whenever a TRV zone's heating power is above 0 (its calling for heat). The Smart Stat's schedule is set to 5c (lowest possible) all the time, when a TRV calls for heat it sets the Smart Stat to Manual and the Target Temp to Current Temp + 5 (this means the Smart Stat starts the pump, and the TRV/Extension kit have already started the boiler). As soon as no TRV's are calling for heat, the Smart Stat is set back to Schedule. I also check that if the Smart Stat's Current Temp and Target Temp are getting close (less than 1c) I increase the Target Temp to ensure the Heating Power stays high and keeps the central heating pump running - bit of a long winded hack, but at least it is working till I can rewire the system!

Thanks again for your binding - it could have been a cold / expensive winter without!