grzegorz914 / homebridge-lgwebos-tv

Homebridge plugin for LG WebOS TV, publish as independent external platform accessory.
MIT License
135 stars 15 forks source link

Turn off tv (external integrations) #231

Closed ruudvdb closed 2 weeks ago

ruudvdb commented 2 weeks ago

I've noticed to 'problems':

  1. The documentation states you have to send this json in order to power on the tv: {Power: true}, this does not work. The correct parameter is: {"Power": 1} to turn the TV on and {"Power": 0} to turn the TV off.
  2. Of the TV is already off and you send a request: {"Power": 0} the TV will turn on instead of staying off.

The last part is not realy a bug in this code base, I think it's an LG API 'bug' but a workaround could be in this code by checking if the TV is already in the OFF-state, if so, don't do anything.

grzegorz914 commented 2 weeks ago

fixed