Skip to content

johnmdilley/python-bghive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-bghive

Python interface to British Gas Hive API (info from http://www.smartofthehome.com/2016/05/hive-rest-api-v6/)

  • Start by creating a session
import bghive
session = bghive.Session(username, password)
  • Get a node by name
bedroom_light = session.get_node("Bedroom")
  • Get the attributes of the node:
bedroom_light.attributes
  • Set an attribute on the node
bedroom_light.set_attribute("state", "OFF")

About

Python interface to British Gas Hive API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages