Hi,
I just added my Samsung TV to Home Assistant through the Samsung Smart TV
-integration.
I want to have a card on my dashboard that shows both power-button and volume +/- etc.
If I add a entity card now all I get is this:
And if I click on the three dots on the upper right corner I get more info like this:
Is it possible to get all the controls here, power, mute volume -/+, play/pause in a single card?
Hellis81
(Hellis81)
April 27, 2022, 3:57pm
2
It’s all service calls so yes.
Have a look here where I explained how to do service calls from the dashboard.
I don’t know what custom card you are going to use and if it even works.
But using a normal entities card I can do this:
entities:
- entity: proximity.home
double_tap_action:
action: call-service
service: esphome.ns_kitchen_play_rtttl
data:
song_str: 'siren:d=25,o=10,b=150:d,e,d,e,d,e'
It doesn’t play oddly enough it says the song_str is not included. But the double tap action works.
In your case just use an entity and tap_action and see if you can fire the re…
Recte
April 28, 2022, 4:02am
3
As said above, create buttons that do whet you want.
One could use a horizontal or vertical stack card to organize things.
Simple example:
type: horizontal-stack
cards:
- type: button
tap_action:
action: call-service
service: media_player.volume_down
service_data: {}
target:
entity_id: media_player.<your TV>
entity: media_player.<your TV>
show_name: false
icon: mdi:volume-minus
icon_height: 25px
hold_action:
action: call-service
service: media_player.volume_mute
service_data:
is_volume_muted: true
target:
entity_id: media_player.<your TV>
- type: button
tap_action:
action: call-service
service: media_player.volume_up
service_data: {}
target:
entity_id: media_player.<your TV>
entity: media_player.<your TV>
show_name: false
icon: mdi:volume-plus
icon_height: 25px
hold_action:
action: call-service
service: media_player.volume_mute
service_data:
is_volume_muted: false
target:
entity_id: media_player.<your TV>
You also might consider using Samsung specific service calls, but since I do not have a Samsung, I am not familiar with it.
2 Likes
Thanks for the info. I will look in to this!