飞利浦色调照明系统api的python模块。
BeautifulHue的Python项目详细描述
示例
"""Update light #3's state.""" from beautifulhue.api import Bridge # Connect to a Philips Hue bridge. bridge = Bridge(device={'ip':'bridge_ip_address'}, user={'name':'your_username'}) # Define the target resource, and its new related states. resource = { 'which':3, 'data':{ 'state':{'on':True, 'ct':222} } } # Signal the bridge to execute your command when appropriate. bridge.light.update(resource)
功能
- 完整的飞利浦色调API v1.0覆盖范围。
- 方法名一致。
- 旨在完成任务。
- json/pyton字典资源表示。
- 默认响应结构与Philips Hue API的官方响应结构紧密一致。
- 可扩展设计。
- 细粒度系统状态控制。
- Complete Documentation