我需要创建 Alexa 智能家居技能。我想使用 Alexa 设备控制我的灯。但据我了解,智能家居技能只支持这样的话语
Alexa, turn on name
Alexa, turn off name
Alexa, set name to x percent
Alexa, brighten name
Alexa, dim name
Alexa, dim name by x percent
Alexa, brighten name by x percent
Alexa, set name to x degrees
Alexa, decrease name by x degrees
Alexa, increase name by x degrees
Alexa, decrease name
但是,我的用例略有不同。
Alexa, turn on the kitchen light.
Alexa, dim the bedrromlight to 50%
Alexa, turn on the halllight for 3 hours
Alexa, set a daily timer for the testlight to turn on every day at 9am
Alexa, how dim is the bedrromlight right now?
智能家居技能适合我的用例吗?
今天使用智能家居技能就可以正常工作:
Alexa, turn on the kitchen light.
Alexa, dim the bedroomlight to 50 %.
您可以为此使用例程(但目前无法使用语音创建例程,只能在配套应用程序中创建):
Alexa, set a daily timer for the testlight to turn on every day at 9am
Alexa 目前不支持这些:
Alexa, how dim is the bedroomlight right now?
Alexa, turn on the halllight for 3 hours.
您可以为这两个用例构建自定义技能,或者干脆等待亚马逊实施它们。如果是我,我会专注于已经使用智能家居技能的核心用例,而不是在自定义技能上浪费时间。例如,您无法将自定义技能内容与例程集成。
我想这不仅仅与特定的智能家居技能有关。用户可以给不同的定位设备(例如您的灯)命名,例如
kitchen light
,并且他可以将不同的智能家居设备分配给房间。
此外,用户还可以创建包含多个设备的组,因此您可以说:
Alexa, turn on the kitchen
所有相关灯都会亮起。
用户还可以根据您的情况在 Alexa 应用程序中创建例程:
switch the testlight on at 9 am every day.
这可能无法通过语音完成,而是在应用程序中完成。
因此 Alexa 智能家居应该适合用例。