seydx / homebridge-bravia-tvos

Homebridge plugin for Sony Bravia Android TVs
MIT License
346 stars 32 forks source link

This plugin prevents the TV from going deep sleep #182

Closed raulchen closed 2 years ago

raulchen commented 2 years ago

Thanks for this awesome plugin.

I recently found that my TV (X90J) had high power consumption (24-ish watts) during standby. After some investigation, I found that the root cause is that this plugin keeps polling the TV API.

[1/18/2022, 12:44:02 AM] [BraviaTVOS] [DEBUG] Bedroom TV: Polling API...
[1/18/2022, 12:44:02 AM] [BraviaTVOS] [DEBUG] Bedroom TV: {"id":1,"turnedOff":true,"result":[40005,"Display Is Turned off"]}

When I disabled this plugin, the standby power consumption went down to less than 1W. Is it possible to fix this issue? Maybe one possible solution is to stop polling when the TV is already turned off. Thanks in advance.

raulchen commented 2 years ago

Worked around this issue by setting polling interval to 100s.