I would like to add some sort of button with an editable value to HomeAssistant, in such a way that if I edit it, it sends the value as MQTT command to Tasmota, right from the Lovelace desktop.
Specifically, I would like to be able to easily make ad-hoc changes to Tasmota MaxPower setting. So set it to 1000W one day, and 2000W another day.
I did find I likely need to give a MQTT command like this but how to do this from a self made sensor is something I would appriciate some example.