Hi,
you can do that with Tasmota even without an MQTT server, I think.
Use a combination of timers and rules to set the appropriate pulsetime.
I haven't tried it yet, but something like this should do the trick:
Timer1 {"Arm":1,"Time":"08:00","Window":0,"Days":"SMTWTFS","Repeat":1,"Action":3}
Timer2 {"Arm":1,"Time":"20:00","Window":0,"Days":"SMTWTFS","Repeat":1,"Action":3}
Rule on Clock#Timer=1 do pulsetime 400 endon on Clock#Timer=2 do pulsetime 700 endon
Rule 1
I think you can even use sunrise / sunset events for timers, if you configure your location correctly.
Best regards
Gert