platypush.plugins.homeseer

class platypush.plugins.homeseer.HomeseerPlugin(host, username=None, password=None, *args, **kwargs)[source]

This plugin allows you interact with an existing HomeSeer setup, query and control connected devices.

Requires:

  • pyhomeseer (pip install git+https://github.com/legrego/PyHomeSeer)
__init__(host, username=None, password=None, *args, **kwargs)[source]
Parameters:
  • host (str) – IP or hostname of your HomeSeer hub
  • username (str) – HomeSeer username
  • password (str) – HomeSeer password
control(ref, value=None, label=None)[source]

Control a HomeSeer connected device.

Parameters:
  • ref (int) – Device reference
  • value (int) – If set, then control the device with this specific int value
  • label (str) – If set, then control the device with this specific label (e.g. ‘On’ or ‘Off’)
query_devices(ref=None, location=None)[source]

Get a list of devices connected to HomeSeer with their status

Parameters:
  • ref (int) – Device reference. If not set, all the devices will be queried
  • location (str) – Device location. If not set, all the devices will be queried