Could someone help me what is wrong with my configuration, particularly, with state_detection_rules that I actually copied from docs example:
media_player:
- platform: androidtv
host: 192.168.1.100
name: Android TV
adb_server_ip: 127.0.0.1
adb_server_port: 5037
apps:
org.droidtv.playtv: "TV"
com.google.android.youtube.tv: "YouTube"
com.netflix.ninja: "Netflix"
org.droidtv.tvsystemui: "Screensaver"
com.plexapp.android: "Plex"
com.google.android.tvlauncher: "Menu"
com.opera.sdk.example: "Browser"
org.xbmc.kodi: "Kodi"
state_detection_rules:
'com.plexapp.android':
- 'paused':
'media_session_state': 3 # this indentation is important!
'wake_lock_size': 1 # this indentation is important!
- 'playing':
'media_session_state': 3 # this indentation is important!
- 'standby'
Unfortunately, validator doesnât accept it:
Configuration invalid
Invalid config for [media_player.androidtv]: [state_detection_rules] is an invalid option for [media_player.androidtv]. Check: media_player.androidtv->state_detection_rules. (See ?, line ?). Please check the docs at https://home-assistant.io/integrations/media_player.androidtv/
You are already connected to the Android TV / Fire TV via ADB from another device. Only one device can be connected, so disconnect the other device, restart the Android TV / Fire TV (for good measure), and then restart Home Assistant.
I am using 0.100.3 as i am having BIG problems installing and running 0.101.3.
Is there a release that will work with 0.100.3 as custom component?
I was always connected only with my fire tv⌠i discovered it changed ip address also if i set it as static IP
Must i restart FireTV again and connect with adb again?
I disconnected (deleting the adb keys) and restarted my fire tv.
Got the request for adb, the two adb keys were created again, clicked ok, restarted HA but still got the same advice !!!
So i need (in the meantime i solve the problem with the 0.101.3 release) of the previous release of the component that was working greatâŚ
I forgot to mention that I am using the latest available version 0.101.3 and I am not using the customer component, therefore, I am puzzled with this error.
Can you confirm that full example in the current documentation successfully passing config validation?
I migrated from the server to client method in 0.101.3 by commenting out the adb_server_ip and using the key generated by the adb command in the adbkey config parameter. It works fine.
2019-11-13 19:44:48 INFO (MainThread) [homeassistant.components.media_player] Setting up media_player.androidtv
But no entity with that name is present and i still get that advice in HACS.
Just curious:
Having this configuration:
- platform: androidtv
name: Fire TV
host: 192.168.1.33
device_class: firetv
The media player entity created should be media_player.fire_tv and not media_player androidtv or not?
But i get none of themâŚ
SOLVED: I deleted from the core.entity_registry all the entries regarding firetv. Restarted and⌠voilà ⌠all is working again. Only one question: why i get two media_players about firetv? One is called media_player.fire_tv (as the name inside the configuration), the second media_player.fire_tv_stick which is always in standby.
Does anyone here know how to get ADB working over Ethernet on a USB adapter?
I have a Xiaomi Mi Box, and attached to it a USB adapter with an Ethernet port. If I enable USB debugging, the Ethernet wonât work, which obviously isnât an acceptable side effect.