Been messing around with various options and found something i liked so thought I’d share…
Prompted by this thread:
and this thread:
instead of doing the ADB lifting on the synology - i installed MQTT client, ADB Shell [tasker], Secure Settings (although only got secure settings to work a few times to wake the device) on the shield. EDIT:
I actually used ADB as well for wake which works WAY more reliably, used the same command input keyevent KEYCODE_POWER
Essentially i’m sending a MQTT command to the shield from HA - Tasker is listening via MQTT Client and then based on the action / appname in the topic / message then completes an action.
I can run an app (so have the icon in my lovelace UI like netflix )
I can wake the device up and turn the TV on
I can turn the device (and TV) off
I can also pause (and resume) whatever i’m watching.
(and have a sensor that reports on whatever is being shown)
in case anyone wanted the info: input keyevent KEYCODE_MEDIA_PAUSE input keyevent KEYCODE_MEDIA_PLAY