Metadata-Version: 2.1
Name: pyihome
Version: 0.0.5
Summary: Python library to interface with iHome API.
Home-page: https://github.com/lmelvin/pyihome
Author: lmelvin
Author-email: luke@lucasmelvin.com
License: UNKNOWN
Description: # pyihome
        
        Python library to interface with the iHome API.
        
        This library interfaces with the [EVRYTHING API](https://developers.evrythng.com/reference)
        
        Currently this library supports the following:
        
        All Devices
         - get devices associated with the account which are swtiches with only one outlet
        
        Switch
         - turn_on(*device_id*)
         - turn_off(*device_id*)
         - get_state(*device_id*)
        
        How to use
        
        ```python
        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
        switch.turn_on(device_id)
        
        #turn off the switch
        switch.turn_off(device_id)
        
        #get state
        print("State: {}".format(switch.get_state(device_id)))
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.6
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
