简体   繁体   English

智能媒体设备的谷歌操作中的频道特征

[英]Channel trait in google actions for smart media devices

I have been to trying out the google home nodejs sample project .我一直在尝试google home nodejs 示例项目 I am facing some difficulties to make action.devices.traits.Channel trait work for one of my home projects where I am adding a device of type action.devices.types.SETTOP .我在为我的一个家庭项目添加action.devices.traits.Channel类型action.devices.types.SETTOP设备时遇到了一些困难。 I have also tried the same with action.devices.types.REMOTECONTROL and action.devices.types.TV but the action.devices.commands.selectChannel command and params are never reaching the /smarthome fulfilment function in firebase.我也对action.devices.types.REMOTECONTROLaction.devices.types.TV进行了同样的尝试,但是action.devices.commands.selectChannel命令和参数从未达到 firebase 中的 /smarthome 实现 function。 However, action.devices.commands.relativeChannel and action.devices.commands.returnChannel seem to work in the expected way.但是, action.devices.commands.relativeChannelaction.devices.commands.returnChannel似乎以预期的方式工作。

Similar situation here.这里的情况类似。 Implementing local home sdk for set top box.为机顶盒实现本地家庭 sdk。

In my case, I could receive the request with:就我而言,我可以收到以下请求:

'change to {ABC} on {my stb name}'

However, it sends me 'action.devices.commands.InitiateMedia' instead and response with 'Got it, {ABC} on spotify playing on {my stb name}'.但是,它改为向我发送“action.devices.commands.InitiateMedia”并回复“知道了,{ABC} on spotify 在 {my stb name} 上播放”。

 * {ABC} is defined in availableChannels

If you don't link with music service, can you try above command and share the result?如果您不链接音乐服务,您可以尝试上述命令并分享结果吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM