Download the PHP package dam2k/tadoapi without Composer
On this page you can find all versions of the php package dam2k/tadoapi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dam2k/tadoapi
More information about dam2k/tadoapi
Files in dam2k/tadoapi
Package tadoapi
Short Description TadoApi is an unofficial TADO (tm) SDK implementation for PHP
License MIT
Informations about the package tadoapi
tadoapi
TadoApi is an unofficial TADO (tm) SDK implementation for PHP. I implemented this as a metrics exporter, but you could change your thermostat or AC temperature, for example, writing your overlay and setting data with setZoneOverlay() method:
It's working for me, may be this is also ok for you. Like any other open source software, the author cannot assume any warranty.
Installation
Public Methods
The implemented and exported public methods are given below. They are self explicative.
For me getHomeMetrics() is the most useful, because it aggregates some of the informations useful if you need a metric exporter. It will fetch all your zones details and states along with all your devices:
Temperatures, humidity, battery, firmware versions, serial numbers, models, etc in a single json.
Example of usage
No official support
TADO (tm) does not support its public api in no way. I get the api methods from a tado knowledgebase public post. Also, thank to this post: https://shkspr.mobi/blog/2019/02/tado-api-guide-updated-for-2019/ and https://blog.scphillips.com/posts/2017/01/the-tado-api-v2/
Device code grant flow
NOTE: TADO requested all its unofficial REST API users to change the authentication method for security reasons. This library implements the new device code grant flow with automatic refresh token and access token handling. By design of how the auth scheme works, the first time, you need to authenticate with your tado credentials using your browser. At this time this API will put the required url on STDERR, I'll work on a log implementation on my spare time.
For more informations, please check their official post: https://support.tado.com/en/articles/8565472-how-do-i-authenticate-to-access-the-rest-api