I created automation to send several IR blaster codes that are stored in scripts to my TV with delays in between. I can trigger automation manually and it works. From Developer tools/Actions I can also select Animation.trigger and if will run. I searched for way to do this from a card and found a way that seems that should work, but its not: https://community.home-assistant.io/t/mini-media-player-shortcut-buttons-start-automation/486157
Here is yaml for player card and when pressed nothing happens:
type: custom:mini-media-player
entity: media_player.tv_1
source: icon
volume_stateless: true
sound_mode: full
hide:
icon: true
prev: true
next: true
play_pause: true
play_stop: true
source: true
power_state: false
hide_when_off:
buttons: true
shortcuts:
hide: null
power_state: false
hide_when_off: true
columns: 3
buttons:
- icon: mdi:hdmi-port
type: service
service: automation.trigger
service_data:
entity_id: automation.tv_av_hdmi_2
show_name: true
name: HDMI 2
Dot I put there to prevent auto bulletining that I don't know how to avoid
Thanks for any guidance
I have an automation for playing a radio browser feed. alias: onkyo_play_nostalgie description: "" trigger: [] condition: [] action: - service: media_player.play_media target: entity_id: media_player.stereo data: media_content_id: media-source://radio_browser/451491bd-624e-41e8-ab4c-71816f10611e media_content_type: a...