Having a hard time figuring out how to control this flow, but I'd like to have 3 buttons (something like the screenshot) control various casts of camera dashboards.
However, I'd also like to change the icon to something different if I select one of them to indicate it's casting. Additionally, it'd be nice to be able to click the button again to call media_player.turn_off to stop the casting.
I currently have 3 individual scripts (below) to control the actual casting action and they work fine. I'm just not sure how to wire up buttons to the scripts in a way where only one button can be active at a time, and clicking it again calls turn_off like above.
I've done some searching and I'm not sure if using an input_select entity would be the right approach since I'd be able to then select from a pre-determined list of options.
Any guidance (or how to approach this) would be appreciated as I'm learning HA. Thank you!
alias: Show All Cameras
action: cast.show_lovelace_view
data:
entity_id: media_player.living_room_tv
dashboard_path: dashboard-cameras
view_path: all