Someone suggested that I use this card to switch which information was being fed to things, and so after reading and poking around otherās code, hereās what Iāve written:
However, this gives me an error message āNo card type configuredā and ātype: ā 'ā when I very clearly have defined my card type, as āthermostatā. For the record, that input select should be telling template-card which entity to look at. I tried this with visibility conditionals, but something in Lovelace (card_mod, probably) is doing redraws of the screen when the input is switched which looks a touch clunky.
well thereās going to be a redraw in any case, as that is what you tell the system to do.
You really should prevent using config-template-card, as it is a resource hog of the more serious kindā¦
if you have just those 3 climates, youād be much better of with visibility options indeed, and, glancing a your config, if youād use a yaml anchor (with which you can c&p reused yaml) your complete config would be much more compact too.
why dont you show the bare config you need for those 3, and add a visibility condition for each, and show us what you have
Grab a JSON structure from a template sensor attribute. Working.
Grab the query string from the url of my yaml mode view. Working.
Use the query string value as a key to extract a given key from the json in #1. NOT WORKING.
In the snippet below, what I really want is to replace [states['input_text.remote_ui_target'].state] with the query string value of āparams.modeā. i.e. http://homeassistant.local:8123/lovelace-yaml-1/0?mode=samsung_tv. So config: resolves as the below, grabbing that value from the ?mode=samsung_tv
Pass a query string to yaml dahboard. i.e. ?mode="porch"
Use that query string value to grab a set of configuration variables from a sensor template.
Use those variables to completely redefine my dashboard. So, in this case I have a TV remote. If I send the query string ?mode=porch, the remote is configured for my Porch TV. If I send ?mode=deck it configures as my deck tvā¦and so on.
I donāt think there is any other way of passing āvariablesā into a dashboard view!
You could set sensors, but they become system wide not user/device specific.