nickpeirson/evohome

该软件包最新版本(0.2.0)没有可用的许可信息。

0.2.0 2016-04-21 14:03 UTC

This package is not auto-updated.

Last update: 2024-09-12 00:50:31 UTC


README

PHP 库,用于连接霍尼韦尔 EvoHome API

这是一个正在进行中的项目。获取信息相对完整,应该很容易根据需要扩展。我开始尝试推送设置,但这并不完整,可能需要完全重新设计才能实现。

示例

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);

鸣谢

我非常依赖这个帖子中的信息,这为我节省了大量嗅探和尝试的时间。