使用飞利浦 Hue Activate/Deactivate 的 API 通过飞利浦 Hue App 创建的场景

Using API of Philips Hue Activate/Deactivate Scene created via Philips Hue App

我尝试了很多解决方案,但没有得到准确的解决方案。

已尝试遵循 API 详细信息

我收到了使用以下内容的场景列表 API

http://localhost/api/newdeveloper/scenes(在模拟器和设备上运行良好)

现在,我想像 Philips Hue App 一样从列表中激活或停用特定场景。

如果需要更多信息来帮助,请告诉我。

你说激活场景,是指召回吗?如果是这样,这是通过群组 API 完成的 http://www.developers.meethue.com/documentation/scenes-api#44_recall_scene(需要登录) http://www.developers.meethue.com/documentation/groups-api#253_body_example(需要登录)

这不要与场景中的 'active' 布尔值混淆。 active flag 被 bridge 用来表示场景什么时候可以使用,是只读的。