sehaas / ha_hisense_tv

Hisense TV integration for Home Assistant
MIT License
101 stars 22 forks source link

Poll media player via actions/gettvstate #52

Closed clockbrain closed 1 year ago

clockbrain commented 1 year ago

The media player entity state doesn't update when the TV settings are changed outside of Home Assistant, e.g. via the remote control. This PR adds polling of actions/gettvstate to refresh the media player entity state.

Appears to work ok for my setup but I haven't done any HA custom components before so it would be great if someone else could test it. In particular I am unsure about the topic /remoteapp/tv/ui_service/AutoHTPC/actions/gettvstate because my older Hisense doesn't need any of the MAC_ADDRESS$normal stuff in the message topic.

Note that this may be a fix for the similar issue raised in https://github.com/sehaas/ha_hisense_tv/issues/44

clockbrain commented 1 year ago

There are still some issues with this PR. Ignore for now.

clockbrain commented 1 year ago

Abandoning this PR. May revisit in the future if I can get it working properly.