Forked from webostv component to add media player state by Rale.
This Modification will not work if you have not modified your webOS TV as stated in the GIST below.
Adjusted for internal API permission changes using SSAP for a rooted WebOS TV. Follow the instructions in this GIST to make your TV broadcast the media states. https://gist.github.com/Kuchiru/55e1b509a85cbece056dc7196d5c7385
- Add this repository as a custom integration repository, then restart home assistant
- Under settings, devices & services, add integration, and search for "LG TV"
- Enter the ip address for the TV, click submit, and then accept the prompt on TV
- Download the repo, then copy the lgtv directory into the custom_components directory in your home assistant config location, then set up the integration same as above
- The modifications to your TV will require a service restart on each power on, this means the TV will appear to be off during this restart. You can set a duration on the off trigger in HA Automations to work around false 'off' triggers. for my TV 7 seconds was enough.
- Idle state does not work, you can work around this by triggering any idle actions with a duration on the paused state.