Chockymonster wrote:You don't need to use IFTTT for the email bit. One of the settings my script pulls down is the operation mode, so as soon as someone is home a variable updates. There has to be a way to get the information, I just can't see it!k
Since I didn't get the operation mode working, I did some digging myself. Why I didn't get it working must be that I'm using different Tado hardware as guys - I guess you guys have Tado Smart Thermostat (
https://www.tado.com/gb/) but I have Tado Smart AC Control (
https://www.tado.com/gb/smart-air-conditioner) and therefore both iPhone app and their webapp use different API's for control.
I get most of data with your script through that getCurrentState call but some, for example the control mode, are missing or give same data all the time. I did some packet sniffing with OSX Safari network inspector and found out that Smart AC control pulls data every 10 seconds with different call (sorry dont have the exact syntax at my hands now) hvacState which takes username and password as parameter but also has its own url where your house id is also given.
With that hvacState I did get operation mode (Heat/Cool) but also Fan speed, Temp set etc but unfortunately didn't find presence information that way either.
I can post the details how to use hvacState call later on.
EDIT:
This is the url I used to get Smart AC controls data out:
- Code: Select all
https://my.tado.com/api/v1/home/YOURHOUSEID/hvacState?username=YOURTADOUSERNAME&password=YOURTADOPASSWORD
and here is example response data:
{"tadoMode":"HOME","geolocationOverride":false,"acSetting":{"type":"COOLING","power":"ON","mode":"HEAT","temperature":{"celsius":22,"fahrenheit":71.6},"fanSpeed":"MIDDLE"},"overlay":null,"insideTemperature":{"celsius":23.07,"fahrenheit":73.53,"timestamp":"2015-10-29T09:51:32.436Z","type":"TEMPERATURE"},"humidity":{"type":"PERCENTAGE","percentage":30.2,"timestamp":"2015-10-29T09:51:32.436Z"}}