maxileith / homebridge-appletv-enhanced

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

Apple TV can be reached on OSI Layer 2 but not on 3 #448

Closed kloibs closed 1 week ago

kloibs commented 1 week ago

Preconditions

Current Situation

Hi there! I have had this plugin running for months and it has been fantastic! I recently upgraded my router and implemented some VLANs. All of my other devices from Homebridge work fine, but unfortunately I can’t seem to get my Apple TV working in this plugin again.

Logs

[14/06/2024, 19:23:47] [Apple TV Enhanced] Launched child bridge with PID 3847
[14/06/2024, 19:23:48] [Apple TV Enhanced] Loaded homebridge-appletv-enhanced v1.3.1 child bridge successfully
[14/06/2024, 19:23:48] Loaded 0 cached accessories from cachedAccessories.0EB36080381E.
[14/06/2024, 19:23:48] [Apple TV Enhanced] [I] Platform: Finished initializing platform: Apple TV Enhanced
[14/06/2024, 19:23:48] [Apple TV Enhanced] [I] Update check: The update checker is configured to check for updates every 60 minutes, excluding betas. Auto updating is turned on.
[14/06/2024, 19:23:49] Homebridge v1.8.2 (HAP v0.12.1) (Apple TV Enhanced) is running on port 39454.
[14/06/2024, 19:23:49] Registering platform 'homebridge-xbox-tv.XboxTv'
[14/06/2024, 19:23:49] [Apple TV Enhanced] [I] Update check: You are using the latest version of AppleTV Enhanced (excluding betas): 1.3.1
[14/06/2024, 19:23:49] [Apple TV Enhanced] [I] Python check: Starting python check.
[14/06/2024, 19:23:49] [Apple TV Enhanced] [I] Python check: plugin dir exists.
[14/06/2024, 19:23:50] [Apple TV Enhanced] [I] Python check: Python 3.9.2 is installed and supported by the plugin.
[14/06/2024, 19:23:50] [Apple TV Enhanced] [I] Python check: Virtual environment already exists.
[14/06/2024, 19:23:50] [Apple TV Enhanced] [I] Python check: Venv is using current system python version (3.9.2).
[14/06/2024, 19:23:52] [Apple TV Enhanced] [I] Python check: Venv pip version: 24.0
[14/06/2024, 19:23:52] [Apple TV Enhanced] [I] Python check: Checking if there is an update for venv pip ...
[14/06/2024, 19:23:53] [Apple TV Enhanced] [I] Python check: Venv pip is up-to-date
[14/06/2024, 19:23:55] [Apple TV Enhanced] [I] Python check: Python requirements are satisfied.
[14/06/2024, 19:23:55] [Apple TV Enhanced] [I] Python check: Finished
[14/06/2024, 19:23:55] [Apple TV Enhanced] [I] Platform: Starting device discovery ...
[14/06/2024, 19:24:03] [Apple TV Enhanced] [I] Platform: Adding Apple TV Family Room (A8:51:AB:9D:99:17)
[14/06/2024, 19:24:03] [Apple TV Enhanced] [I] Family Room (A8:51:AB:9D:99:17): verifying credentials ...
[14/06/2024, 19:24:08] [Apple TV Enhanced] [W] Family Room (A8:51:AB:9D:99:17): Apple TV can be reached on OSI Layer 2 but not on 3. This is likely a network problem. Restart the plugin after you have fixed the root cause.
[14/06/2024, 19:25:51] [Apple TV Enhanced] Initializing AppleTVEnhanced platform...
[14/06/2024, 19:25:51] [Apple TV Enhanced] Initializing child bridge 0E:B3:60:80:38:1E
[14/06/2024, 19:25:51] Loading 50 accessories...
[14/06/2024, 19:25:51] Ignoring config for the accessory "3EMEnergyMeter" in your config.json as the plugin "homebridge-3em-energy-meter" has been disabled.
[14/06/2024, 19:25:55] [Apple TV Enhanced] Launched child bridge with PID 3999
[14/06/2024, 19:25:55] [Apple TV Enhanced] Loaded homebridge-appletv-enhanced v1.3.1 child bridge successfully
[14/06/2024, 19:25:55] Loaded 0 cached accessories from cachedAccessories.0EB36080381E.
[14/06/2024, 19:25:55] [Apple TV Enhanced] [I] Platform: Finished initializing platform: Apple TV Enhanced
[14/06/2024, 19:25:56] [Apple TV Enhanced] [I] Update check: The update checker is configured to check for updates every 60 minutes, excluding betas. Auto updating is turned on.
[14/06/2024, 19:25:56] Homebridge v1.8.2 (HAP v0.12.1) (Apple TV Enhanced) is running on port 39454.
[14/06/2024, 19:25:56] Registering platform 'homebridge-xbox-tv.XboxTv'
[14/06/2024, 19:25:58] [Apple TV Enhanced] [I] Update check: You are using the latest version of AppleTV Enhanced (excluding betas): 1.3.1
[14/06/2024, 19:25:58] [Apple TV Enhanced] [I] Python check: Starting python check.
[14/06/2024, 19:25:58] [Apple TV Enhanced] [I] Python check: plugin dir exists.
[14/06/2024, 19:25:58] [Apple TV Enhanced] [I] Python check: Python 3.9.2 is installed and supported by the plugin.
[14/06/2024, 19:25:58] [Apple TV Enhanced] [I] Python check: Virtual environment already exists.
[14/06/2024, 19:25:58] [Apple TV Enhanced] [I] Python check: Venv is using current system python version (3.9.2).
[14/06/2024, 19:26:00] [Apple TV Enhanced] [I] Python check: Venv pip version: 24.0
[14/06/2024, 19:26:00] [Apple TV Enhanced] [I] Python check: Checking if there is an update for venv pip ...
[14/06/2024, 19:26:01] [Apple TV Enhanced] [I] Python check: Venv pip is up-to-date
[14/06/2024, 19:26:03] [Apple TV Enhanced] [I] Python check: Python requirements are satisfied.
[14/06/2024, 19:26:03] [Apple TV Enhanced] [I] Python check: Finished
[14/06/2024, 19:26:03] [Apple TV Enhanced] [I] Platform: Starting device discovery ...
[14/06/2024, 19:26:11] [Apple TV Enhanced] [I] Platform: Adding Apple TV Family Room (A8:51:AB:9D:99:17)
[14/06/2024, 19:26:11] [Apple TV Enhanced] [I] Family Room (A8:51:AB:9D:99:17): verifying credentials ...
[14/06/2024, 19:26:16] [Apple TV Enhanced] [W] Family Room (A8:51:AB:9D:99:17): Apple TV can be reached on OSI Layer 2 but not on 3. This is likely a network problem. Restart the plugin after you have fixed the root cause.

Configuration

{
            "name": "Apple TV Enhanced",
            "mediaTypes": [
                "music",
                "tv",
                "unknown",
                "video"
            ],
            "deviceStates": [
                "idle",
                "loading",
                "paused",
                "playing",
                "seeking",
                "stopped"
            ],
            "deviceStateDelay": 0,
            "remoteKeysAsSwitch": [
                "channel_down",
                "channel_up",
                "down",
                "home",
                "home_hold",
                "left",
                "menu",
                "next",
                "pause",
                "play",
                "play_pause",
                "previous",
                "right",
                "select",
                "skip_backward",
                "skip_forward",
                "stop",
                "turn_off",
                "turn_on",
                "top_menu",
                "up",
                "volume_down",
                "volume_up"
            ],
            "avadaKedavraAppAmount": 15,
            "disableVolumeControlRemote": false,
            "setTopBox": false,
            "discover": {
                "multicast": true
            },
            "forceVenvRecreate": false,
            "logLevel": 4,
            "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
                }
            ],
            "_bridge": {
                "username": "0E:B3:60:80:38:1E",
                "port": 39454
            },
            "platform": "AppleTVEnhanced"
}

Operating System

Linux

Operating System: Bits

64-bit

Operating System: Distribution

Raspbian GNU/Linux

Operating System: Distribution Version

11 (bullseye)

Docker

no

Docker Image

None

Docker Image Tag

No response

Homebridge Version

1.8.2

Homebridge Config UI Version

v4.56.2

Homebridge Storage Path

/var/lib/homebridge

Homebridge Apple TV Enhanced Version

1.3.1

Node Version

20.13.1

NPM Version

10.5.2

Python Version

3.9.2

PIP Version

20.3.4

HDMI Hops

Apple TV > Hue Sync > LG Soundbar eARC > LG TV

Audio Output

no

Same Subnet

yes

Additional Context

No response

github-actions[bot] commented 1 week ago

❗ Action required

There are a few problems with your opened issue. Please fix them by editing the issue:

Often the problem you are experiencing will be solved by simply making your environment compliant with the requirements (fulfilling the pre-checks).

🔁 Rerun

After editing the issue, the checks will be run again.

Under no circumstances should the issue be adjusted untruthfully. If the issue cannot fulfill the pre-checks, your environment is simply not supported.

If you do not adjust the issue accordingly, the issue will be automatically closed after 14 days of inactivity.

maxileith commented 1 week ago

Could you please update the plugin to v1.4.1-0 and set the loglevel in the configuration to debug? Then send me the logs :)

kloibs commented 1 week ago

Thanks for your response @maxileith 🙈 per usual, user error 🤡🤡🤡🤡 accidentally changed the port on my switch for the tv to a different VLAN.

maxileith commented 1 week ago

Alright, thank for letting me know. I am gonna close the issue as you have solved the problem already :)