Hi!
I just setup Android TV and Broadlink.
I have problem when I turn off the Android TV and I can’t turn on again because the TV turn off Wifi is think or somethink like that, but I can’t turn it on again.
Is possible combine androidtv and broadlink to turn on and turn off but with broadlink?
This is my code:
media_player:
# Use the Python ADB implementation
- platform: androidtv
name: Android TV
host: my_ip
device_class: androidtv
apps:
com.google.android.tvlauncher: "Android TV"
com.netflix.ninja: "Netflix"
com.plexapp.android: "Plex"
com.spotify.tv.android: "Spotify"
tv.twitch.android.viewer: "Twitch"
com.google.android.youtube.tv: "YouTube"
turn_on_command:
service: "remote.send_command"
target:
entity_id: "remote.universal_remote_remote"
data:
device: "tv"
command: "power"
turn_off_command:
service: "remote.send_command"
target:
entity_id: "remote.universal_remote_remote"
data:
device: "tv"
command: "power"
I try this but I got configuration invalid:
Invalid config for [media_player.androidtv]: value should be a string for dictionary value @ data['turn_off_command']. Got OrderedDict([('service', 'remote.send_command'), ('target', OrderedDict([('entity_id', 'remote.universal_remote_remote')])), ('data', OrderedDict([('device', 'tv'), ('command', 'power')]))])
value should be a string for dictionary value @ data['turn_on_command']. Got OrderedDict([('service', 'remote.send_command'), ('target', OrderedDict([('entity_id', 'remote.universal_remote_remote')])), ('data', OrderedDict([('device', 'tv'), ('command', 'power')]))]). (See ?, line ?).
I created a script too for the Broadlink turn on and turn off, Should I use this script in the code?
Thanks in advance!
Regards