homebridge-samsungtv-control2 icon indicating copy to clipboard operation
homebridge-samsungtv-control2 copied to clipboard

UE46C7700 does not work in 2.x.x (did well in 1.1.1)

Open Reinboeng opened this issue 3 years ago • 4 comments

Hi Martin (@mmende),

thanks for your long term work regarding this plugin.

I recently tried to update the plugin from 1.1.1 to a newer version (2.0.0), but I failed.

What I did:

  1. Upgraded the plugin via config-ui-x UI.
  2. Removed the old (1.1.1) config from config.json
  3. Added the new config "{"platform": "SamsungTVControl", "name": "SamsungTVControl"} to the config.json
  4. Added initial config to config.json ("devices": [{"usn": "uuid:a7001fbe-c776-11ea-87d0-0242ac130003", "name": "Bedroom TV"}]
  5. Switched HB debug mode on.
  6. Restarted HB
  7. Did the paring "npx homebridge-samsungtv-control legacy 192.168.0.26 00:12:fb:21:8a:8b". TV was muted.
  8. Did not get any UUID (in hb.log).
  9. Tried to add TV to my Home (Open the Home App, Type + in the top right corner to add a device, Then click on Don't Have a Code or Can't scan?, The found TV should appear under Nearby Accessories ... click on it)

No success.

All I can see in the logs are two related entries: ^[[37m[07/03/2021, 20:13:32] ^[[39m^[[36m[SamsungTVControl]^[[39m ^[[90mGot config {^[[39m ^[[90m platform: 'SamsungTVControl',^[[39m ^[[90m devices: [^[[39m ^[[90m {^[[39m ^[[90m usn: 'uuid:a7001fbe-c776-11ea-87d0-0242ac130003',^[[39m ^[[90m name: 'SamsungTV'^[[39m ^[[90m }^[[39m ^[[90m ]^[[39m ^[[90m}^[[39m

^[[37m[07/03/2021, 20:13:32] ^[[39m^[[36m[SamsungTVControl]^[[39m ^[[90mUsing node-persist path: /var/lib/homebridge/.homebridge-samsungtv-con$ (node:10133) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'log' of undefined at debug (/usr/local/lib/node_modules/homebridge/src/logger.ts:143:10) at checkDeviceDetails (/usr/local/lib/node_modules/homebridge-samsungtv-control/src/utils/detectDevices.ts:85:5) at processTicksAndRejections (internal/process/task_queues.js:93:5) (Use node --trace-warnings ... to show where the warning was created) (node:10133) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async functi$ (node:10133) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, p

Hope this helps and you may solve my issue!

Thank you! Regards!

Lars

Reinboeng avatar Mar 07 '21 19:03 Reinboeng

Seems to be the same issue as #66 I just published a patch including a workaround for this specific problem. Let me know if v2.0.2 fixed the problem.

mmende avatar Jun 27 '21 09:06 mmende

Log Output

Loading logs using native method...
File: /var/lib/homebridge/homebridge.log
[28/06/2021, 21:06:44] [HB Supervisor] OS: Linux 5.10.17-v7l+ arm
[28/06/2021, 21:06:44] [HB Supervisor] Node.js v14.15.2 /usr/local/bin/node
[28/06/2021, 21:06:48] [HB Supervisor] Starting Homebridge with extra flags: -I -D
[28/06/2021, 21:06:48] [HB Supervisor] Started Homebridge v1.2.5 with PID: 18794
[28/06/2021, 21:06:48] Loaded config.json with 2 accessories and 5 platforms.
[28/06/2021, 21:06:49] ---
[28/06/2021, 21:06:51] Loaded plugin: [email protected]
[28/06/2021, 21:06:51] Registering platform 'homebridge-samsungtv-control.SamsungTVControl'
[28/06/2021, 21:06:51] ---
[28/06/2021, 21:06:51] Loading 5 platforms...
[28/06/2021, 21:06:51] [SamsungTVControl] Initializing SamsungTVControl platform...
[28/06/2021, 21:06:51] [SamsungTVControl] Got config { platform: 'SamsungTVControl' }
[28/06/2021, 21:06:51] [SamsungTVControl] Using node-persist path: /var/lib/homebridge/.homebridge-samsungtv-control
Found unparsable model name (Samsung DTV DMR) for device TV-46C7700, usn: "uuid:nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn". Skipping it.
[28/06/2021, 21:06:56] [SamsungTVControl] SamsungTVControl db - wrote: /var/lib/homebridge/.homebridge-samsungtv-control/49a93582a910673f04262657317b99d0

(I changed uuid to n's).

Config

        {
            "platform": "SamsungTVControl"
        }

or

        {
            "platform": "SamsungTVControl",
            "devices": [
                {
                    "usn": "uuid:nnnnnnnn-nnnn-nnnn-nnnn-nnnnnnnnnnnn" (discovered uuid),
                    "name": "Samsung TV"
                }
            ]
        }

Unfortunately - either config way - I am not able to add the TV as described (Home App / + / Add device / and so an). The TV is not found. Rolled back to v1.1.1

Reinboeng avatar Jun 28 '21 18:06 Reinboeng

Hi @mmende ,

even if I try to override the discovered modelName "Samsung DTV DMR" for the device stated in the log it is not recognized:

Found unparsable model name (Samsung DTV DMR) for device TV-46C7700, usn: "uuid:7593195a-d865-5896-0fef-1439766e4e83". Skipping it.

    {
        "platform": "SamsungTVControl",
        "devices": [
            {
                "usn": "uuid:7593195a-d865-5896-0fef-1439766e4e83",
                "name": "TV-46C7700",
                "modelName": "UE46C7700WSXZG"
            }
        ]
    }

results in

Found config for unknown device usn: "uuid:7593195a-d865-5896-0fef-1439766e4e83" {
  usn: 'uuid:7593195a-d865-5896-0fef-1439766e4e83',
  name: 'TV-46C7700',
  modelName: 'UE46C7700WSXZG'
}

Help would be appreciated!

Reinboeng avatar Jul 06 '21 15:07 Reinboeng

maybe HB settings problem? go to the HB settings and reset settings accessory.?

mussolene avatar Nov 05 '21 05:11 mussolene