konradknitter / homebridge-philips-android-tv

Homebridge module for the Philips Android TV
Apache License 2.0
47 stars 6 forks source link

No Homkit code in logs provided #48

Closed jonalbr closed 3 years ago

jonalbr commented 3 years ago

Describe The Bug:

Hi, the log does not provide a HomeKit code. I'm not able to add a TV.

To Reproduce:

  1. Install Plugin using child bridge
  2. Configure Plugin
  3. Search for HomeKit Code

Expected behavior:

HomeKit Code is provided.

Logs:

8.8.2021, 00:39:59 Philips Android Tv Bridge Philips Android Tv Bridge starting
8.8.2021, 00:40:01 Philips Android Tv Bridge [ DEBUG ] Initializing HAP-NodeJS v0.9.4...
8.8.2021, 00:40:02 Philips Android Tv Bridge Loaded plugin 'homebridge-philips-android-tv'
8.8.2021, 00:40:02 Philips Android Tv Bridge [ DEBUG ] Registering accessory 'homebridge-philips-android-tv.PhilipsAndroidTV'
8.8.2021, 00:40:02 Philips Android Tv Bridge [ DEBUG ] Registering platform 'homebridge-philips-android-tv.PhilipsAndroidTV'
8.8.2021, 00:40:02 Philips Android Tv Bridge Loading 1 platforms...
8.8.2021, 00:40:02 Philips Android Tv Bridge PhilipsAndroidTV [object Object]
8.8.2021, 00:40:02 Philips Android Tv Bridge PhilipsAndroidTV Adding new accessory: TV
8.8.2021, 00:40:02 Philips Android Tv Bridge PhilipsAndroidTV [TV] Connecting to TV to fetch current informations
8.8.2021, 00:40:02 Philips Android Tv Bridge [ DEBUG ] Preparing Advertiser for 'Philips Android Tv Bridge ED3A' using ciao backend!
8.8.2021, 00:40:02 Philips Android Tv Bridge [ DEBUG ] Starting to advertise 'Philips Android Tv Bridge ED3A' using ciao backend!
8.8.2021, 00:40:02 Philips Android Tv Bridge Bridge is running on port 51866.
8.8.2021, 00:40:02 Philips Android Tv Bridge PhilipsAndroidTV [TV] TV state {"powerstate":"On"}
8.8.2021, 00:40:03 Philips Android Tv Bridge PhilipsAndroidTV [TV] Applications setup finished
8.8.2021, 00:40:03 Philips Android Tv Bridge PhilipsAndroidTV [TV] Channels setup finished
8.8.2021, 00:40:03 Philips Android Tv Bridge [ DEBUG ] Preparing Advertiser for 'TV 5688' using ciao backend!
8.8.2021, 00:40:03 Philips Android Tv Bridge [ DEBUG ] Starting to advertise 'TV 5688' using ciao backend!
8.8.2021, 00:40:03 Philips Android Tv Bridge TV 5688 is running on port 45663.
8.8.2021, 00:40:08 Philips Android Tv Bridge PhilipsAndroidTV [TV] Start responding again.
8.8.2021, 00:40:08 Philips Android Tv Bridge PhilipsAndroidTV [TV] TV has been turn on.
8.8.2021, 00:40:08 Philips Android Tv Bridge PhilipsAndroidTV [TV] TV volume has been changed to 15%.
8.8.2021, 00:40:08 Philips Android Tv Bridge PhilipsAndroidTV [TV] Current application has been changed to NA.
8.8.2021, 00:40:08 Philips Android Tv Bridge PhilipsAndroidTV [TV] TV Channel has been changed to 3sat HD.

Plugin Config:

"platforms": [
        {
            "platform": "PhilipsAndroidTV",
            "tvs": [
                {
                    "name": "TV",
                    "ip": "192.168.178.XX",
                    "wakeOnLanRequests": 1,
                    "wakeOnLanTimeout": 1000,
                    "macAddress": "XX:XX:XX:XX:XX:XX",
                    "apiUser": "XXXX",
                    "apiPass": "XXXX",
                    "apiVersion": 6,
                    "wakeUntilAPIReadyCounter": 100,
                    "alternativePlayPause": true,
                    "channels": {
                        "favoriteListId": "1",
                        "includeAll": false,
                        "channels": [
                            "Das Erste HD",
                            "WELT"
                        ]
                    },
                    "apps": [
                        "Netflix",
                        "YouTube",
                        "Disney+",
                        "Prime Video",
                        "Plex",
                        "TV"
                    ]
                }
            ],
            "configVersion": 1,
            "debug": true
        }
  ]

Environment:

konradknitter commented 3 years ago

This code is printed by platform (Homebridge) not the plugin:

[8/8/2021, 8:08:30 AM] [PhilipsAndroidTV] [Office TV] TV state {"powerstate":"On"} [8/8/2021, 8:08:31 AM] [PhilipsAndroidTV] [Office TV] Applications setup finished [8/8/2021, 8:08:31 AM] [PhilipsAndroidTV] [Office TV] Channels setup finished Preparing Advertiser for 'Office TV 6FDD' using bonjour-hap backend! Starting to advertise 'Office TV 6FDD' using bonjour-hap backend! [8/8/2021, 8:08:31 AM] Office TV 6FDD is running on port 38475. [8/8/2021, 8:08:31 AM] Please add [Office TV 6FDD] manually in Home app. Setup Code: 445-71-202

Also seems it's always the same as a bridge code.

jonalbr commented 3 years ago

It's still not in the Homebridge logs, but using the same code worked. Thanks