Skip to content
CLI for Hive smart home devices.
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
LICENSE
README.md
ask.go
commands.go
connection.go
hivecli.go
util.go

README.md

hivecli

Unofficial CLI compatible with the API used by Hive (by British Gas) smart devices.

hivecli is written in Go using the go-hive library and also serves as a comprehensive example for using it.

Disclaimer

This software is in no way endorsed by British Gas. The underlying REST API is undocumented and subject to change at any time, which means hivecli may suddenly stop working.

Use at your own risk.

In addition, the CLI only supports a subset of the API - specifically, the devices I personally own. Most notably, smart heating is not supported.

Contributions are welcome.

Download

You can find the latest version of the binary in the releases section.

Usage

$ hivecli [OPTION]... COMMAND [ARGUMENT]...

Running hivecli with no arguments will display the supported commands and how they're used.

First run

The first time hivecli is used to run a command, it will ask for the following information:

  • Your username
  • Your password
  • The login URL API endpoint (for Hive, the default login URL https://beekeeper.hivehome.com/1.0/global/login)

The password will then be stored in your platform's keyring (dbus under Linux, /usr/bin/security under MacOS and Credential Manager under Windows), while the username and login URL are stored in the config file.

You can’t perform that action at this time.