Hi and sorry for hijacking this thread, but I have a very similar question:
Iām trying to issue an adb command to my FireTV and get a response from it as described here:
adb shell pm dump org.xbmc.kodi | grep -A 1 "MAIN" | grep org.xbmc.kodi | awk '{print $2}' | grep org.xbmc.kodi
I couldnāt find a way to do that, after searching for almost a week.
I.e. Iām looking for an activity or intent that starts streaming Hue Sync
At the moment Iām letting Home Assistant start Hue Stream and Kodi at a certain time in the evening and navigate through the app with Harmony. This seems overly complicated and relies on Hue Stream being off, else the automation would be turning it off instead of on.
- id: kodi_21_15_an
alias: Kodi 21:15 an
trigger:
- at: '21:15:00'
platform: time
condition:
condition: and
conditions:
- condition: state
entity_id: media_player.kodi
state: 'off'
- condition: or
conditions:
- condition: state
entity_id: device_tracker.google_maps_******
state: home
- condition: state
entity_id: device_tracker.google_maps_******
state: home
action:
- data:
activity: '37467008'
entity_id: remote.harmony_hub
service: remote.turn_on
- delay: 00:00:30
- data:
entity_id: media_player.fire_tv
source: com.bullbash.huestream
service: media_player.select_source
- delay: 00:00:05
- data:
command: DirectionDown
device: '59741152'
entity_id: remote.harmony_hub
service: remote.send_command
- data:
command: OK
device: '59741152'
entity_id: remote.harmony_hub
service: remote.send_command
- data:
entity_id: media_player.fire_tv
source: org.xbmc.kodi
service: media_player.select_source
Maybe this automation helps someone or someone can help me find a way to achieve what Iām trying to do.
Thanks in advance.