How can I create some lovelace UI to call a script?

I’ve been playing around with this new Variable repo which lets you create and consume variables.

You can set a variable using a service call:

I need some way of creating a UI in lovelace that will have a textbox (that only accepts numbers) and a button that when pressed will call the service to set the variable. Could you point me to some lovelace code that might serve as an example?

You could create an input number (Configuration - Helpers): https://www.home-assistant.io/integrations/input_number
You won’t need a submit button then, either an input field that detects changes automatically or a slider :slight_smile:

I know about input numbers, but I want to use this approach for different things.