简体   繁体   中英

Channel trait in google actions for smart media devices

I have been to trying out the google home nodejs sample project . 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 . 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. However, action.devices.commands.relativeChannel and action.devices.commands.returnChannel seem to work in the expected way.

Similar situation here. Implementing local home sdk for set top box.

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}'.

 * {ABC} is defined in availableChannels

If you don't link with music service, can you try above command and share the result?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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