Hi, I’m trying to create a frontend UI button with glance card to switch my media player source from spottify. I am able to call for this service under the Developer Tools.
> service: media_player.select_source
> data:
> source: Bose Soundbar 700
> target:
> device_id: 3faa4357f97911ea91d6e7fddde21ae5
Under my glance card this is the code used. I manage to get the button to work once however i edited something and couldn’t get it back working again. Anyone has any idea on how i can get this to work?
> type: glance
> entities:
> - entity: media_player.spotify_abc
> tap_action:
> service: media_player.select_source
> data:
> source: Bose Soundbar 700
> target:
> device_id: 3faa4357f97911ea91d6e7fddde21ae5
> - entity: media_player.googlehome8657
> tap_action:
> action: call-service
> service: spotcast.start
> service_data:
> entity_id: media_player.googlehome8657
> - entity: media_player.master_bedroom_speaker
> tap_action:
> action: call-service
> service: spotcast.start
> service_data:
> entity_id: media_player.master_bedroom_speaker
> - entity: media_player.study_room_wifi
> tap_action:
> action: call-service
> service: spotcast.start
> service_data:
> entity_id: media_player.study_room_wifi
> state_color: true