bschlenk / homebridge-roku

Control your Roku media player from your iOS devices using Apple's HomeKit.
MIT License
78 stars 24 forks source link

Siri Commands #186

Open loaxley opened 3 years ago

loaxley commented 3 years ago

I have a Roku Ultra connected to my network via ethernet. Homebridge is running on a Raspberry Pi 4 also connected to my network via ethernet. Everything works great via the Control Center remote or the Home app. I've managed to successfully turn the Roku on and off using the Siri commands "Turn Roku power off" and "Turn Roku power on". However, I can't, for the life of me, figure out how to do any other Siri command, whether it be tuning the Roku to a specific app or increasing/decreasing the volume. I've looked at every open and closed ticket, and yet I just can't figure it out. I've tried "Tune Roku to Netflix", "Set Roku to Netflix", "Change Roku Channel to Netflix", "Set Roku Input to Netflix", Set Roku Inputs to Netflix", "Change Roku App to Netflix", and about 50 other permutations, but none of them work. I'm sure i'm missing something super obvious here. Would greatly appreciate some assistance with this. My config file is below:

    "accessories": [
        {
            "name": "Roku",
            "accessory": "Roku",
            "ip": "http://192.168.1.24:8060",
            "inputs": [
                {
                    "id": "31012",
                    "name": "FandangoNOW Movies & TV"
                },
                {
                    "id": "12",
                    "name": "Netflix"
                },
                {
                    "id": "13",
                    "name": "Prime Video"
                },
                {
                    "id": "2285",
                    "name": "Hulu"
                },
                {
                    "id": "46041",
                    "name": "Sling TV"
                },
                {
                    "id": "50025",
                    "name": "Google Play Movies & TV"
                },
                {
                    "id": "151908",
                    "name": "The Roku Channel"
                },
                {
                    "id": "13842",
                    "name": "VUDU"
                },
                {
                    "id": "69091",
                    "name": "4K Spotlight"
                },
                {
                    "id": "31440",
                    "name": "CBS All Access"
                },
                {
                    "id": "291097",
                    "name": "Disney Plus"
                },
                {
                    "id": "551012",
                    "name": "Apple TV"
                },
                {
                    "id": "552944",
                    "name": "Roku Tips & Tricks"
                },
                {
                    "id": "75617",
                    "name": "Food Network GO"
                },
                {
                    "id": "34376",
                    "name": "ESPN"
                },
                {
                    "id": "65978",
                    "name": "CNNgo"
                },
                {
                    "id": "27536",
                    "name": "CBS News"
                },
                {
                    "id": "54065",
                    "name": "ABC News Live"
                },
                {
                    "id": "2213",
                    "name": "Roku Media Player"
                },
                {
                    "id": "28",
                    "name": "Pandora"
                },
                {
                    "id": "8378",
                    "name": "HBO GO"
                },
                {
                    "id": "38820",
                    "name": "Showtime Anytime"
                },
                {
                    "id": "65067",
                    "name": "STARZ"
                },
                {
                    "id": "63344",
                    "name": "Comedy Central"
                },
                {
                    "id": "47389",
                    "name": "FXNOW"
                },
                {
                    "id": "74519",
                    "name": "Pluto TV - It's Free TV"
                },
                {
                    "id": "184661",
                    "name": "Roku Streaming Player Intro"
                },
                {
                    "id": "256635",
                    "name": "Streamer"
                },
                {
                    "id": "93580",
                    "name": "iWebTV Player"
                },
                {
                    "id": "837",
                    "name": "YouTube"
                },
                {
                    "id": "13535",
                    "name": "Plex - Stream for Free"
                },
                {
                    "id": "150902",
                    "name": "Mirror for Roku"
                }
            ],
            "info": {
                "udn": "29680003-5404-1032-802a-8c49621138f4",
                "serialNumber": "YJ003E274986",
                "deviceId": "KW9993274986",
                "advertisingId": "5cc1f3ed-79db-58c8-bb08-0af14674c2b6",
                "vendorName": "Roku",
                "modelName": "Roku Ultra",
                "modelNumber": "4670X",
                "modelRegion": "US",
                "isTv": "false",
                "isStick": "false",
                "supportsEthernet": "true",
                "wifiMac": "8c:49:62:11:38:f4",
                "wifiDriver": "realtek",
                "hasWifiExtender": "false",
                "hasWifi5GSupport": "true",
                "canUseWifiExtender": "true",
                "ethernetMac": "8c:49:62:11:38:f5",
                "networkType": "ethernet",
                "friendlyDeviceName": "AMRU",
                "friendlyModelName": "Roku Ultra",
                "defaultDeviceName": "Roku Ultra - YJ003E274986",
                "userDeviceName": "AMRU",
                "userDeviceLocation": "Bedroom",
                "buildNumber": "469.30E09000A",
                "softwareVersion": "9.3.0",
                "softwareBuild": "9000",
                "secureDevice": "true",
                "language": "en",
                "country": "US",
                "locale": "en_US",
                "timeZoneAuto": "true",
                "timeZone": "US/Pacific",
                "timeZoneName": "United States/Pacific",
                "timeZoneTz": "America/Los_Angeles",
                "timeZoneOffset": "-420",
                "clockFormat": "12-hour",
                "uptime": "697756",
                "powerMode": "PowerOn",
                "supportsSuspend": "false",
                "supportsFindRemote": "true",
                "findRemoteIsPossible": "true",
                "supportsAudioGuide": "true",
                "supportsRva": "true",
                "developerEnabled": "false",
                "keyedDeveloperId": "",
                "searchEnabled": "true",
                "searchChannelsEnabled": "true",
                "voiceSearchEnabled": "true",
                "notificationsEnabled": "true",
                "notificationsFirstUse": "true",
                "supportsPrivateListening": "true",
                "headphonesConnected": "false",
                "supportsEcsTextedit": "true",
                "supportsEcsMicrophone": "true",
                "supportsWakeOnWlan": "false",
                "hasPlayOnRoku": "true",
                "hasMobileScreensaver": "true",
                "supportUrl": "roku.com/support",
                "grandcentralVersion": "3.3.43",
                "trcVersion": "3.0",
                "trcChannelVersion": "2.9.42",
                "davinciVersion": "2.8.20"
            }
        }
    ]
ALittleOfEverything88 commented 3 years ago

Was running an older version of homebridge-roku (I think 2.x) and turning the power on and launching a specific app worked beautifully. Currently running the latest version and I can't do that anymore; best I can do it power the device on and off.

Did something change between v2 and v3?

The individual apps no longer show in homekit as something that I can toggle on and off.

prhiggins commented 3 years ago

I haven't had any luck in the latest version having Siri change inputs manually, however you can partially work around this using scenes or Shortcuts. Creating a scene or Siri shortcut that sets the TV to the desired input can let you make at least a few of your apps a bit quicker to launch.

ALittleOfEverything88 commented 3 years ago

Any comments from the devs? I know this was working prior to v3.

DennisFury commented 3 years ago

Same here, nothing works via Siri other than turning the TV on and off. Gotta go to the Roku remote app to do anything else.

ALittleOfEverything88 commented 3 years ago

Is there a way to load v2 after removing v3?

gradyhouston commented 3 years ago

What does the config look like for this plugin?

This part:

{ "platform": "XXXXXXX", "name": "XXXXX",

I can't get the homebridge-roku-config to find my roku, so I'm not sure if it auto-sets that part up? Sorry to hi-jack your thread here. I only posted here because your config looks a lot like what mine would if I could get homebridge to find my Roku.

ALittleOfEverything88 commented 3 years ago

Was running an older version of homebridge-roku (I think 2.x) and turning the power on and launching a specific app worked beautifully. Currently running the latest version and I can't do that anymore; best I can do it power the device on and off.

Did something change between v2 and v3?

The individual apps no longer show in homekit as something that I can toggle on and off.

Ok, figured out a work around using a "scene" in Homekit. There's a dial you can scroll through to choose the input which works with a scene in Homekit.