mmende / homebridge-samsungtv-control2

homebridge-samsungtv-control2
MIT License
71 stars 17 forks source link

Accessory never shows in Home app. #32

Open frios opened 4 years ago

frios commented 4 years ago

The first time I installed this in HOOBS without any inputs section, it was successfully displayed as an accessory i could add in the Home app. I have since modified the configuration like so.

{ "platform": "SamsungTVControl", "devices": [ { "usn": "uuid:0c845882-00d2-1000-9130-90f1aacaecbf", "token": "eyJzZXNzaW9uSWQiOiIxIiwiYWVzS2V5IjoiN2ZjNjc3NzI3NDY1NjU1MGU1NjAyNjRiZTgyMmE5Y2MifQ==", "name": "Living Room TV", "inputs": [ { "name": "HDMI", "keys": "KEY_HDMI1" } ] } ] }

Even though I removed it from the Home app, it will not ever show up again as an addable accessory. I have gone back and removed the inputs section, removed the plugin from HOOBS, and then readied it, and the log shows

10/5/2020, 12:56:45 PM [SamsungTVControl] Found device Living Room TV (UN55HU8700), usn: uuid:0c845882-00d2-1000-9130-90f1aacaecbf 10/5/2020, 12:56:45 PM Living Room TV is running on port 32953.

but it never shows up in the Home app as an accessory that can be added.

mmende commented 4 years ago

This can usually be solved by removing the homebridge cache. I don't know specifically how to do this in HOOBS but in Homebridge config UI X you would click on the three dot's in the top right corner then Homebridge settings, then in the settings Unpair Bridges / Cameras / TVs / External Accessories and then delete the cached tv and restart homebridge afterwards. Hope this helps...

Fofer commented 4 years ago

This same thing happened to me, quite a few times now. In HOOBS this is also handled from the three dots in the top right corner, but then you choose "Help," then "Reset Connection." This resets the whole HOOBS connection, so you'll have to add your devices back into their HomeKit rooms. But this time, the Samsung TV will also be available to add back.

frios commented 4 years ago

UGH. I have so many accessories in HOOBS I don't want to reload everything again.

mmende commented 4 years ago

This only removes the tv from the homebridge cache as far as I know. And as tv's are exposed as separate accessories (to avoid a homekit limitation) you'll only have to add the tv and not the other accessories as far as my experience goes.

Fofer commented 4 years ago

I think this is one of the differences between homebridge and HOOBS. At least in HOOBS, one of the only ways I could get the Samsung TV to appear again for adding it back, was by resetting the HOOBS connection. (The other was manually changing the HomeKit PIN, but that also forced me to re-add all of my HOOBS devices back their HomeKit rooms, as well.)

If there’s another way to reset just the TV cache to re-add just the TV, I’d love to learn about it. Maybe a Terminal command?