MQTT button with multiple Payloads


Im running solismod & pySolarman to let home assistant control my solar inverter.

Between the two of them they take an MQTT publish action and publish a payload to the inverter.

I have script to change the charge time which is 4 MQTT publish actions
Charge start hour, charge start minutes, charge stop… All working fine.

Id like to put a button on the dash that will set the charge time but as the times vary is there a way I can do that without manually editing the script every time?