我目前在一部舊款安卓機(小米2s)上頭安裝了 Tasker + AutoRemote
再利用 rest_command 接入 HA,
可以達到調整媒體音量/暫停Youtube/播放Youtube功能
我想思路可能是類似的, 你可以參考一下
rest_command:
mi2s_yt_play:
url: 'https://autoremotejoaomgcd.appspot.com/sendmessage?message=pl&key=-IDLQxgTFzpMYyFjN'
mi2s_yt_pause:
url: 'https://autoremotejoaomgcd.appspot.com/sendmessage?message=pa&key=-IDLQxgTFzpMYyFjN'
mi2s_vol_up:
url: 'https://autoremotejoaomgcd.appspot.com/sendmessage?message=vu&key=-IDLQxgTFzpMYyFjN'
mi2s_vol_down:
url: 'https://autoremotejoaomgcd.appspot.com/sendmessage?message=vd&key=-IDLQxgTFzpMYyFjN'
|