'selectChannel command is not working on the Google Assistant

I'm trying to add a select channel trait. what I did was that I followed the docs,

1- Add the ATTRIBUTES to the device I want to apply this feature on, for example, a TV device type

2- I guess we are all done as every other command works with my code

What I actually did was the following to the device database in Firestore

Screen Shot 2022-04-23 at 2 54 26 AM


Screen Shot 2022-04-23 at 3 00 04 AM

then added the

case "action.devices.commands.selectChannel":

in the

 switch (execution.command) {}

code

then reloaded the device from the google home app then when I try to call "Change to ABC on my TV" it says 'Sorry, I don't understand.' and nothing appears on the logs otherwise, everything is working perfectly,i.e setting the volume and On/Off. what am I doing wrong, please?

UPDATE: Today I tried command "action.devices.commands.returnChannel" and "action.devices.commands.relativeChannel" and they are working fine and all three commands belongs to the same trait! I've seen a lot of users complaining about this command on many sites like the following 1,2, could this be related, I'm still in debug mode, would it be fixed when I publish my app

UPDATE #2 I tried it today with an android phone and it works fine with selectChannel command, previously I was testing with an iPhone with google home and google assistant apps on their latest release, and the selectChannel is the only command that didn't work there. Hope it's just related to the debugging mode



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source