Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nickpeirson committed Jan 11, 2015
1 parent a6a843d commit d96394b
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# evohome-php
PHP library to connect to the Honeywell EvoHome API

This is a work in progress. Fetching information is reasonably complete and should be easy enough to extend as needed. I started work on pushing settings back, but this isn't at all complete and may need completely reworking to make work.

# Example

```php
use Nickpeirson\Evohome\Service;
use Nickpeirson\Evohome\Entity\Schedule;
use Nickpeirson\Evohome\Value\Switchpoint;
require dirname(__DIR__).'/vendor/autoload.php';

$evohome = Service::init('username', 'password');
$response = $evohome->fetchUserAccount();
$response = $evohome->fetchInstallationInfo($response->userId);
$response = $evohome->fetchZoneSchedule($response[0]->gateways[0]->temperatureControlSystems[0]->zones[0]->zoneId);
print_r($response);
```

# Credits

I heavily relied on the information in [this thread](http://www.automatedhome.co.uk/vbulletin/showthread.php?3863-Decoded-EvoHome-API-access-to-control-remotely) which saved me a load of time on sniffing and trial and error.

0 comments on commit d96394b

Please sign in to comment.