Oh crap… you will need to add them together building the json string. It needs to be 1 string. If you can’t work it out I will post when my computer is on. Too hard on ipad.
ok cool, no hurry, but please do. thanks!
card_installed_string='{"state":"","attributes":{"darksky":"'"$darksky_card"'","buttoncard":""$button_card""}}'
etc…
You will only have ONE card_installed_string and the curl command will write that string to a sensor, sensor.lovelace_card_installed in HA. Every card will be an attribute of that sensor and I was using the config-template-vard t display them in my lovelace example above.
I also used an automation to run the script every hour I think.
1 Like