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?