How do I pass the value I want it set to from Alexa? Is that even possible?
Home Assistant scripts become scenes in Alexa. When I select the scene under “ALEXA WILL” all I get is the option to turn the scene on or off ie run the script.
I don’t think it is. An Alexa routine recognises exact phrases, so you’d have to have a different routine for each possible charge level, and a different script.
Some Alexa skills do include parameters - I can say “Set the thermostat to 21 degrees”, for example. You might try building a custom skill?
The actions are set up in the Template Light configuration. In this case it would be the set_level key where you would place the input_number.set_value service call. While they are optional, you should probably add actions for turn_on and turn_off as well, just so you can use those voice commands as well.