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.
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