tavicu / homebridge-samsung-tizen

Homebridge plugin for Samsung TV's with Tizen OS
MIT License
638 stars 86 forks source link

Cannot add TV as accessory through Home (fails at Setup Code) #606

Closed kev017 closed 1 year ago

kev017 commented 1 year ago

I have followed the Installation Instructions up to and including Step 5 (successful Pair/Allow on TV). On step 6, when I try to add the TV as an accessory, it asks for a Setup Code and fails with "Unable to connect to accessory. Check the setup code and try again".

I am entering setup code 0000 as I have manually added this as a line in config.json:

        "devices": [
            {
                "name": "Samsung TV",
                "ip": "192.168.0.181",
                "mac": "70:09:71:84:B4:4A",
                "inputs": [
                    {
                        "type": "app"
                    }
                ]
            }
        ],
        "platform": "SamsungTizen",
        "_bridge": {
            "username": "0E:43:9B:C5:1E:4D",
            "pin": "0000",
            "port": 32385
        }

When I restart Homebridge, I can see this line in the log file:

[1/22/2023, 11:17:33 AM] [homebridge-samsung-tizen] Restarting child bridge... [1/22/2023, 11:17:33 AM] Got SIGTERM, shutting down child bridge process... [1/22/2023, 11:17:38 AM] [homebridge-samsung-tizen] Child bridge process ended [1/22/2023, 11:17:38 AM] [homebridge-samsung-tizen] Process Ended. Code: 143, Signal: null [1/22/2023, 11:17:45 AM] [homebridge-samsung-tizen] Restarting Process... [1/22/2023, 11:17:45 AM] [homebridge-samsung-tizen] Launched child bridge with PID 73124 [1/22/2023, 11:17:45 AM] Registering platform 'homebridge-samsung-tizen.SamsungTizen' [1/22/2023, 11:17:45 AM] [homebridge-samsung-tizen] Loaded homebridge-samsung-tizen v5.2.4 child bridge successfully [1/22/2023, 11:17:45 AM] Loaded 0 cached accessories from cachedAccessories.0E439BC51E4D. [1/22/2023, 11:17:45 AM] Homebridge v1.6.0 (HAP v0.11.0) (homebridge-samsung-tizen) is running on port 32385. [1/22/2023, 11:17:45 AM] Samsung TV F4CE is running on port 58677. [1/22/2023, 11:17:45 AM] Please add [Samsung TV F4CE] manually in Home app. Setup Code: 0000

Any help greatly appreciated :)

tavicu commented 1 year ago

You don’t need to run the plugin as a child bridge. The plugin already treats every tv like a separate bridge and creates one for every tv.

use the pin from the main bridge!