Thanks for explanations. It seems that I mixed two different issues in one topic. Sorry about that.
First I wanted to ask if it is normal behavior that media player window becomes responsive after 15s when you click 3 dots button (window with mute and volume buttons). In my case after clicking 3 dots (I do not touch anything, just waiting) I am waiting 15s and later I can click the available buttons. I noticed that other entities load immediately but in this case it lasts very long.
Second case is that after setup of ADB connection between Sony Bravia and add on everything works fine for few hours. After the TV gets off problems are starting (adb log with failed connection) and entity becomes unavailable. It remains unavailable even if logs in add on show that add on is connected to the TV. Only restarting the add on and reset of adb debugging on TV helps - but just for few hours - it happens again and again. I enabled all of the remote settings in Bravia. I can ping my TV always when it is off.
Below the logs for 2nd issue:
2019-09-04 17:13:48 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.android_tv fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 261, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 441, in async_device_update
await self.hass.async_add_executor_job(self.update)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/androidtv/media_player.py", line 247, in _adb_exception_catcher
return func(self, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/components/androidtv/media_player.py", line 443, in update
self.aftv.update()
File "/usr/local/lib/python3.7/site-packages/androidtv/androidtv.py", line 77, in update
screen_on, awake, wake_lock_size, current_app, media_session_state, audio_state, device, is_volume_muted, volume = self.get_properties(lazy=True)
File "/usr/local/lib/python3.7/site-packages/androidtv/androidtv.py", line 234, in get_properties
wake_lock_size = self._wake_lock_size(lines[0])
File "/usr/local/lib/python3.7/site-packages/androidtv/basetv.py", line 914, in _wake_lock_size
return int(wake_lock_size_response.split("=")[1].strip())
IndexError: list index out of range
2019-09-04 17:16:00 ERROR (SyncWorker_11) [homeassistant.components.androidtv.media_player] Failed to execute an ADB command. ADB connection re-establishing attempt in the next update. Error: ERROR: 'FAIL' 0006closed
The second log keeps repeating all the time.
Thanks in advance for any help.