Apple Home Kit - 服务器驱动

Apple Home Kit - Server driven

Apple Home Kit 和 Siri 是否有可能通过意图与服务器通信,而不是与设备(如灯)本身通信?

我想说的是"Siri turn on the light in Room X",房间里的灯具是由服务器控制的,所以意图是去云端而不是灯本身。

你可以使用 Homebridge

Homebridge is a lightweight NodeJS server you can run on your home network that emulates the iOS HomeKit API

效果很好。我在 Raspberry Pi 上使用它 运行 来控制(从 Siri 以及 "Home" 应用程序)一个 433Mhz 发射器来控制灯光和我家的其他遥控设备。

a lot of plugins that you can install to control devices, but it's also possible to create your own plugins 接收意图并根据它们执行操作。