I am trying to create a button that will call a HACS pyscript based service. The service tester works but my implementation within the button is incorrect. Rather than passing the variable value, it passes the name. I need help with this. Also, as a side note, is it possible to have an “on change” trigger for the cards? Rather than having a separate button I could just have on change of drop down, send service call.
Both options still have the issue of how to pass a Helper variable to pyscript
As Patrick stated you would need a template, but most core cards, including button, do not accept templating. You will have to move your action to a script, then have the button call that script as a service.
Selecting an new option in a dropdown changes the state of the Input select so you can use an automation with a State trigger.
…and now it works. May have not saved changes properly. Either way, thank you for the help in getting this working. My own LEDCube now sits on the dashboard!