version number: 0.0.7
author: Neil Griffin
Library to access Energenie MiHome devices via the web API.
Work in progress. Currently has some functionality, but limited and not properly tested. Use with care.
To install use pip:
$ pip install pymihome
Or clone the repo:
$ git clone https://github.com/ng110/pymihome.git
$ python setup.py install
Offers welcome, as I don't have much time to work on this!
LGPLv3
$ from pymihome import Connection, EnergenieSwitch
$ mihome = Connection([username], [key|password])
$ switches = [EnergenieSwitch(mihome, dev) for dev in mihome.subdevices if dev['is_switch']]
$ for switch in switches:
$ print(switch.name)