Public Member Functions | |
| def | __getitem__ |
| def | __init__ |
| def | check_user_validation |
| def | connect |
| def | create_group |
| def | create_group_schedule |
| def | create_schedule |
| def | delete_group |
| def | delete_schedule |
| def | get_api |
| def | get_group |
| def | get_group_id_by_name |
| def | get_ip_address |
| def | get_light |
| def | get_light_id_by_name |
| def | get_light_objects |
| def | get_schedule |
| def | groups |
| def | lights |
| def | name |
| def | name |
| def | register_app |
| def | request |
| def | set_group |
| def | set_ip_address |
| def | set_light |
Public Attributes | |
| ip | |
| is_connect | |
| lights_by_id | |
| lights_by_name | |
| username | |
Private Attributes | |
| _name | |
Interface to the Hue ZigBee bridge
You can obtain Light objects by calling the get_light_objects method:
>>> b = Bridge(ip='192.168.1.100')
>>> b.get_light_objects()
[<phue.Light at 0x10473d750>,
<phue.Light at 0x1046ce110>]
Or more succinctly just by accessing this Bridge object as a list or dict:
>>> b[0]
<phue.Light at 0x10473d750>
>>> b['Kitchen']
<phue.Light at 0x1046ce110>
| def rocon_python_hue.phue.Bridge.__init__ | ( | self, | |
ip = None, |
|||
username = None |
|||
| ) |
| def rocon_python_hue.phue.Bridge.__getitem__ | ( | self, | |
| key | |||
| ) |
| def rocon_python_hue.phue.Bridge.connect | ( | self | ) |
| def rocon_python_hue.phue.Bridge.create_group | ( | self, | |
| name, | |||
lights = None |
|||
| ) |
| def rocon_python_hue.phue.Bridge.create_group_schedule | ( | self, | |
| name, | |||
| time, | |||
| group_id, | |||
| data, | |||
description = ' ' |
|||
| ) |
| def rocon_python_hue.phue.Bridge.create_schedule | ( | self, | |
| name, | |||
| time, | |||
| light_id, | |||
| data, | |||
description = ' ' |
|||
| ) |
| def rocon_python_hue.phue.Bridge.delete_group | ( | self, | |
| group_id | |||
| ) |
| def rocon_python_hue.phue.Bridge.delete_schedule | ( | self, | |
| schedule_id | |||
| ) |
| def rocon_python_hue.phue.Bridge.get_api | ( | self | ) |
| def rocon_python_hue.phue.Bridge.get_group | ( | self, | |
group_id = None, |
|||
parameter = None |
|||
| ) |
| def rocon_python_hue.phue.Bridge.get_group_id_by_name | ( | self, | |
| name | |||
| ) |
| def rocon_python_hue.phue.Bridge.get_ip_address | ( | self, | |
set_result = False |
|||
| ) |
| def rocon_python_hue.phue.Bridge.get_light | ( | self, | |
light_id = None, |
|||
parameter = None |
|||
| ) |
| def rocon_python_hue.phue.Bridge.get_light_id_by_name | ( | self, | |
| name | |||
| ) |
| def rocon_python_hue.phue.Bridge.get_light_objects | ( | self, | |
mode = 'list' |
|||
| ) |
| def rocon_python_hue.phue.Bridge.get_schedule | ( | self, | |
schedule_id = None, |
|||
parameter = None |
|||
| ) |
| def rocon_python_hue.phue.Bridge.groups | ( | self | ) |
| def rocon_python_hue.phue.Bridge.lights | ( | self | ) |
| def rocon_python_hue.phue.Bridge.name | ( | self | ) |
| def rocon_python_hue.phue.Bridge.name | ( | self, | |
| value | |||
| ) |
| def rocon_python_hue.phue.Bridge.register_app | ( | self | ) |
| def rocon_python_hue.phue.Bridge.request | ( | self, | |
mode = 'GET', |
|||
address = None, |
|||
data = None |
|||
| ) |
| def rocon_python_hue.phue.Bridge.set_group | ( | self, | |
| group_id, | |||
| parameter, | |||
value = None, |
|||
transitiontime = None |
|||
| ) |
| def rocon_python_hue.phue.Bridge.set_ip_address | ( | self, | |
ip_address = '127.0.0.1' |
|||
| ) |
| def rocon_python_hue.phue.Bridge.set_light | ( | self, | |
| light_id, | |||
| parameter, | |||
value = None, |
|||
transitiontime = None |
|||
| ) |
Adjust properties of one or more lights.
light_id can be a single lamp or an array of lamps
parameters: 'on' : True|False , 'bri' : 0-254, 'sat' : 0-254, 'ct': 154-500
transitiontime : in **deciseconds**, time for this transition to take place
Note that transitiontime only applies to *this* light
command, it is not saved as a setting for use in the future!
Use the Light class' transitiontime attribute if you want
persistent time settings.
rocon_python_hue::phue.Bridge::_name [private] |