konradknitter / homebridge-philips-android-tv

Homebridge module for the Philips Android TV
Apache License 2.0
48 stars 6 forks source link

HomeKit State is only updated when opening the Home app #45

Closed 2manyvcos closed 3 years ago

2manyvcos commented 3 years ago

First, thank you for this nice plugin!

I would like to have some automations based on whether the TV is turned on or off.

However, this does only work reliably when the TV is turned on or off using HomeKit. When I turn the TV on or off by using the TV remote or CEC, the automations only trigger when I open the Home app and select a screen where the TV is shown, so it looks like the state is only fetched when it is explicitely requested by HomeKit.

Can this behaviour be changed?

konradknitter commented 3 years ago

State is checked periodically, if you know what could be added, it can be added to

async checkStatus() {

function.