tavicu / homebridge-samsung-tizen

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

Invalid device state - when using "digitalTV" value #560

Open grabarz1986 opened 2 years ago

grabarz1986 commented 2 years ago

Hi

Let me start with statement that for a long time all worked perfectly.

Now when I use switch changing channel to number XXX, I get Invalid device state error in logs.

My configuration hasn't changed:

"switches": [ { "name": "News Channel", "channel": 341, "input": "digitalTv", "power": true },

I guess that the problem is with value "digitalTv" as since I have it also configured as input - it doesn't work either. It also receives the same error in logs.

tavicu commented 2 years ago

That error is coming from the SmartThings API.

SmartThings (not so smart) is unpairing (sort of) the devices if you didn't use them in the SmartThings APP for a long time.

So what you will have to do is go into SmartThings App, remove the TV, then add it again. All keys will be the same, you will not have to do anything else. But that's if you can't control the TV from SmartThings App (it will appear as Offline)

seamonkey420 commented 1 month ago

@tavicu thanks for this post!! i was struggling over and over making a swtich for my HDMI2 input and could not figure it out. had to fire up the smarthings app and remove and re-add and working as it should. thanks again!!!