-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a6a843d
commit d96394b
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |