Skip to content

Posts › Development

Development

PHP/Laravel Library for Tado API

I released on GitHub a PHP library for querying and editing data on the Tado Thermostat System. It is integrated in Laravel 5.x for quick setup in this excellent framework.

1 min read
PHP/Laravel Library for Tado API

After installation, you can use the Facade methods like in the following snippet used for geting current inside temperature

php
 1  $token = Restado::authorize();
 2  $me = Restado::me($token);
 3  $home = Restado::getHomeZoneState($token,$me->homes[0]->id,1);
 4  echo $home->sensorDataPoints->insideTemperature->celsius; // current inside temperature

For getting the package check https://github.com/robertogallea/restado