target both selected player and 'view' from querystring to iframe #3204
skavan
started this conversation in
Feature requests and ideas
Replies: 1 comment 1 reply
-
and if its helpful for others, here's the yaml dashboard that uses config-template-card to do the heretofore, impossible (pass values to a dashboard)...also deals with PITA logic to get the iframe to fill all available vertical height responsively...
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
MA is great - but while we patiently wait for HA native cards, I am using an embedded iframe viewer. It works well -- but with just a few tweaks, would be awesome.
Let's start with my workflow.
This is a snippet from a wall mounted tablet dashboard.
When I click on the relevant button, I navigate to a url:
/my_music_dash?mode=deck
or/my_music_dash?mode=porch
Inside that dashboard, I decode the querystring and construct an iframe url:
http://mass.local:8095/#/home?player=deck ma player
orhttp://mass.local:8095/#/home?player=porch ma player
This all works:
However, I also have some logic in my /my_music_dash that checks the status of the selected player.
If it's "playing", I would like to keep the view above (although even better if I could have the option to see the
queue
rather than the current track.)But if it's idle (i.e. not playing), I want to default to this view, because my most likely action is to select a playlist - and going to the now playing when nothing is playing is not logical!
So, the ask is to:
expand the existing support for
http://mass.local:8095/#/home?player=deck ma player
to support 'views'. i.e.http://mass.local:8095/#/playlists?player=deck ma player
The idea of supporting the above feature extends the usability of the embedded iframe MA instance. A lot.
It allows more custom integration into homeassistant dashboards.
One day, if a querystring param could also hide the player and the view menu bar, not sure I would ever need native HA cards!
Beta Was this translation helpful? Give feedback.
All reactions