Skip to main content

Python library to interface with iHome API.

Project description


Python library to interface with the iHome API.

This library interfaces with the EVRYTHING API

Currently this library supports the following:

All Devices

  • get devices associated with the account which are swtiches with only one outlet


  • turn_on(device_id)
  • turn_off(device_id)
  • get_state(device_id)

How to use

from pyihome import PyiHome

#init api
api = PyiHome("username", "password")

#get devices
devices = api.get_devices()

#get device id of the first item
device_id = devices[0]["id"]

#get switch specific api
switch = api.Switch()

#turn on the switch

#turn off the switch

#get state
print("State: {}".format(switch.get_state(device_id)))

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyihome-0.0.41.tar.gz (2.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page