maxileith / homebridge-appletv-enhanced

Homebridge plugin that exposes Apple TVs with features that should be native to Apple HomeKit.
MIT License
177 stars 3 forks source link

Can’t add ATV to Home app #306

Closed sethlong1 closed 6 months ago

sethlong1 commented 7 months ago

Preconditions

Current Situation

I reinstalled the plugin after having installed and configured it then deleted it a few months ago. I manually unpaired the ATV from the plugin using the Settings app on the ATV. It re-paired without issue. I got the HomeKit setup code from the logs and proceeded to add the accessory in the Home app, but it fails repeatedly every time.

The setup code is the same as for homebridge and other plugins. When I enter it in the Add Accessory window (tap More Options, then tap My accessory isn’t shown here, and then finally tap Enter Code). When I enter the setup code from the logs the Home app goes right back to the Add Accessory screen as if nothing had just happened. The ATV doesn’t get added, no matter how many times I’ve tried.

Logs

See attached

Configuration

        {
            "name": "Apple TV Enhanced",
            "mediaTypes": [
                "music",
                "tv",
                "video"
            ],
            "deviceStates": [
                "paused",
                "playing",
                "stopped"
            ],
            "deviceStateDelay": 0,
            "remoteKeysAsSwitch": [
                "down",
                "home",
                "left",
                "menu",
                "next",
                "play_pause",
                "previous",
                "right",
                "select",
                "stop",
                "turn_off",
                "turn_on",
                "up"
            ],
            "avadaKedavraAppAmount": 15,
            "disableVolumeControlRemote": false,
            "setTopBox": false,
            "discover": {
                "multicast": true
            },
            "forceVenvRecreate": false,
            "logLevel": 3,
            "updateCheckLevel": "stable",
            "deviceSpecificOverrides": [
                {
                    "overrideMediaTypes": false,
                    "overrideDeviceStates": false,
                    "overrideDeviceStateDelay": false,
                    "deviceStateDelay": 0,
                    "overrideRemoteKeysAsSwitch": false,
                    "overrideAvadaKedavraAppAmount": false,
                    "avadaKedavraAppAmount": 15,
                    "overrideCustomInputURIs": false,
                    "overrideDisableVolumeControlRemote": false,
                    "disableVolumeControlRemote": false,
                    "overrideSetTopBox": false,
                    "setTopBox": false
                }
            ],
            "platform": "AppleTVEnhanced",
            "_bridge": {
                "username": "0E:B7:B2:4F:FD:BE",
                "port": 42054
            }
        }

Operating System

Linux

Operating System: Bits

64-bit

Operating System: Distribution

Raspberry pi OS

Operating System: Distribution Version

12 (bookworm)

Docker

no

Docker Image

None

Docker Image Tag

No response

Homebridge Version

1.7.0

Homebridge Config UI Version

v4.55.1

Homebridge Storage Path

/var/lib/homebridge

Homebridge Apple TV Enhanced Version

1.2.5

Node Version

v20.11.1

NPM Version

10.2.4

Python Version

3.11.2

PIP Version

23.0.1

HDMI Hops

AppleTV -> Samsung q990c -> TV

Audio Output

no

Same Subnet

yes

Additional Context

homebridge-appletv-enhanced.log.txt

maxileith commented 7 months ago

I would try to unpair the Apple TV in homebridge like here: https://github.com/maxileith/homebridge-appletv-enhanced/discussions/209#discussioncomment-8263888

If this does not work out for you, please open an issue in the homebridge repo. The pairing process is handled by homebridge not the plugins.

sethlong1 commented 6 months ago

That solved it. Thank you!

vonPB commented 6 months ago

@sethlong1 Please be more careful when posting your config. You have posted your username and password for your TuyaWebPlatform login. Based on your job description from linkedIn I would expect a bit more care :)

sethlong1 commented 6 months ago

Good catch. Thanks. I had actually prepared a sanitized version of the config but it must have gotten lost over several attempts to post.