csburton/hive_control

API interface to control British Gas Hive Heating

Maintainers

👁 csburton

Package info

github.com/csburton/hive_control

Homepage

pkg:composer/csburton/hive_control

Statistics

Installs: 33

Dependents: 0

Suggesters: 0

Stars: 20

Open Issues: 0

v0.0.4 2014-07-13 14:00 UTC

Requires

Requires (Dev)

None

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT db8c6584f8eaf0d8d57d6461bc6ccb42482d6afe

hivebritish gas

This package is auto-updated.

Last update: 2026-06-20 16:21:50 UTC


README

This repository provides the ability to interact with a RESTful API provided by British Gas to control your Hive home heating system. (http://www.hivehome.com)

Note: This API is in no way endorsed by British Gas, and is subject to change at any time.

The API Credentials are the same as used to login to the web interface to manage your Hive.

Sample Code

Get Current Temperature

<?php
$api = new \Hive\Api\Api('<username>', '<password>')
$status = new \Hive\Control\Status($api);
echo $status->getCurrentTemperature();

Set Target Temperature

<?php
$api = new \Hive\Api\Api('<username>', '<password>');
$temperature = new \Hive\Control\Temperature($api);
$temperature->setTargetTemperature(20);

Currently I can't re-engineer the methods to set the heating schedule but, its something I'm working on.

This is most definitely a work in progress