dwaan / homebridge-adb

Homebridge script to control remote ADB enabled Android device
MIT License
74 stars 14 forks source link

Devices working well, but I cannot see the remote option #105

Open raulfunkie opened 4 months ago

raulfunkie commented 4 months ago

Describe the bug I have set up the devices correctly (they show up on HomeKit and I can turn them on and off, change input, etc on Homekit). But I cannot get the remote with the extra buttons (I set them up on the config) on the CC Remote app.

Expected behavior Where should I be seeing the remote? Is there any specific measure I need to take on the config for the remote to show up?

Log output If applicable, add homebridge log output to help explain your problem or copy paste it into a text file and attach it if the log is more than 10 lines. Make sure to set "debug" to true in config.js so plugins will output debug log

Device (please complete the following information):

Additional context

dwaan commented 4 months ago

Can you copy paste your config.json here?

The Android device should appear in Remote app regardless there are more than 1 Homes in HomeKit.

IMG_0350

If you’re not sure with the remote configuration, just delete the remote configuration part from config.json, the plugins will use default value. Or you can edit the config using HomeBridge config UI X with visual representation of the button.

raulfunkie commented 4 months ago

Here’s my config.json, the part where I have homebridge-adb setup:

            "platform": "HomebridgeADB",
            "accessories": [
                {
                    "name": "FireStick",
                    "ip": "192.168.4.39",
                    "mac": "d8:be:65:d5:3f:f5",
                    "timeout": 1000,
                    "interval": 1000,
                    "category": "TV_STREAMING_STICK",
                    "playbacksensor": false,
                    "hidenumber": true,
                    "hideother": true,
                    "hidehome": "false",
                    "debug": true,
                    "skipSpeaker": true,
                    "infobutton": "KEYCODE_HOME KEYCODE_HOME",
                    "selectbutton": "KEYCODE_ENTER",
                    "upbutton": "KEYCODE_DPAD_UP",
                    "rightbutton": "KEYCODE_DPAD_RIGHT",
                    "downbutton": "KEYCODE_DPAD_DOWN",
                    "leftbutton": "KEYCODE_DPAD_LEFT",
                    "playpauseobutton": "KEYCODE_MEDIA_PLAY_PAUSE",
                    "backbutton": "KEYCODE_BACK",
                    "poweron": "adb -s 192.168.4.39:5555 shell input keyevent 26",
                    "poweroff": "KEYCODE_POWER",
                    "inputs": [
                        {
                            "name": "Twitch",
                            "id": "tv.twitch.android.app"
                        },
                        {
                            "name": "Disney+",
                            "id": "com.disney.disneyplus"
                        },
                        {
                            "name": "Youtube",
                            "id": "com.amazon.firetv.youtube"
                        },
                        {
                            "name": "AppleTV",
                            "id": "com.apple.atve.amazon.appletv"
                        },
                        {
                            "name": "Netflix",
                            "id": "com.netflix.ninja"
                        },
                        {
                            "name": "UFC Fight Pass",
                            "id": "com.neulion.firetv.ufc.android.amazon"
                        },
                        {
                            "name": "MagisTV",
                            "id": "com.android.mgstv"
                        },
                        {
                            "name": "HBO Now",
                            "id": "com.hbo.hbonow"
                        }
                    ]
                },
                {
                    "name": "SmartTV",
                    "ip": "192.168.4.52",
                    "mac": "e2:cb:0e:9d:ee:7a",
                    "timeout": 1000,
                    "interval": 1000,
                    "category": "TELEVISION",
                    "playbacksensor": false,
                    "hidenumber": true,
                    "hideother": true,
                    "hidehome": "false",
                    "debug": true,
                    "skipSpeaker": false,
                    "infobutton": "KEYCODE_HOME KEYCODE_HOME",
                    "upbutton": "KEYCODE_DPAD_UP",
                    "rightbutton": "KEYCODE_DPAD_RIGHT",
                    "downbutton": "KEYCODE_DPAD_DOWN",
                    "leftbutton": "KEYCODE_DPAD_LEFT",
                    "volumeup": "KEYCODE_VOLUME_UP",
                    "volumedown": "KEYCODE_VOLUME_DOWN",
                    "poweron": "adb -s 192.168.4.52:5555 shell input keyevent 26",
                    "poweroff": "KEYCODE_POWER"
                }
            ]
        }
dwaan commented 4 months ago

It looks fine, albeit some typo at playpauseobutton should be playpausebutton, and wrong format "poweron": "adb -s 192.168.4.39:5555 shell input keyevent 26", should be "poweron": "shell adb -s 192.168.4.39:5555 shell input keyevent 26".

When you restart the homebridge-adb plugins, does homebridge-adb log contain any error or any unusual output?

raulfunkie commented 4 months ago

@dwaan nope, I don’t see anything out of the ordinary in the logs. I can share them if you’d like too!

Edit: fixed those errors, and still no remote :/

dwaan commented 4 months ago

Right now, I still can’t recreate the problem, so fix will take awhile.

crbyxwpzfl commented 3 months ago

hi i just stumbled across this. As I had trouble with the control centre remote of other plugins and was searching for related issues.

I recently tried other plugins to add tvs to HomeKit. And for all of them the remote widget or control centre remote does not show the tvs with ios17. My testing got me as far as that on ios16 the remote widget shows the tvs. But on ios17 the remote does not show the tvs.

Perhaps this is helpful to you otherwise just ignore me.

dwaan commented 3 months ago

hi i just stumbled across this. As I had trouble with the control centre remote of other plugins and was searching for related issues.

I recently tried other plugins to add tvs to HomeKit. And for all of them the remote widget or control centre remote does not show the tvs with ios17. My testing got me as far as that on ios16 the remote widget shows the tvs. But on ios17 the remote does not show the tvs.

Perhaps this is helpful to you otherwise just ignore me.

Thank you for the info. I think it’s iOS bug perhaps? As my iPhone and iPad both shown the remote normally with the latest iOS and iPadOS..

crbyxwpzfl commented 3 months ago

Thats real good to hear thank you! So it is not intentionally removed by apple. edit. after a settings reset of my phone the remote shows up.