Hello Guys,
I have a Mi Box and I’m using the Android TV integration, it works really good, but I can’t turn on, as the Mi Box breaks wifi connection when it’s powered off… I’ve tried to setup an universal media player, so I can turn it on using Broadlink IR, but for some reason it just won’t use all attributes when it is in idle attribute…
I can’t do anything from the universal media player when it’s in idle, however it works fine in the android tv component itself. I’ve attached some screenshots below for better understanding:
Obs: Mi Box is the Universal Media Player component
My Code is:
media_player:
- platform: universal
name: Mi Box
children:
- media_player.android_tv
commands:
turn_on:
service: script.turn_on
data:
entity_id: script.ligar_mi_box_ir
turn_off:
service: switch.turn_off
data:
entity_id: switch.tv_philips
attributes:
state: sensor.android_tv_state
source_list: media_player.android_tv|source_list
volume_level: media_player.android_tv|volume_level
app_id: media_player.android_tv|app_id
app_name: media_player.android_tv|app_name
source: media_player.android_tv|source
sensor:
- platform: template
sensors:
android_tv_state:
value_template: >-
{%- if is_state('media_player.android_tv', 'unavailable') -%}
off
{%- else -%}
{{ states('media_player.android_tv') }}
{%- endif -%}
Any help would be really appreciated, I already lost a lot time and I couldn’t figure it out myself…
A HUGE THANKS!!!