Tasmota Help - MQTT integration - Send setoption by HA

Hello

I have a few Tasmotas which are on dynamic IP, and are being controlled by HA. I have tried using Tasmoadmin but it seems its not maintained plus it works on fixed IPs.

My idea is to use MQTT to do some basic admin tasks using HA.
I want to send this to all my tasmotas
a) Send Lat and Long info (its hardcoded netherlands in prebuilts- really?)
b) Send setoption 56 and 57 to 1.

How do I do this in HA? In short how do I send MQTT telegram to all the tasmotas in one single keystroke.

Thank you

Make a script with the commands you want to send to group backlog topic

alias: Tasmota Group Command Time Set
sequence:
  - service: mqtt.publish
    data:
      topic: cmnd/tasmotas/BACKLOG
      payload_template: time; TIMEDST 1,1,10,1,2,660; TIMESTD 1,1,4,1,3,600; TIMEZONE 99; TIME;
mode: single
icon: hass:clock


Or a firmware upgrade example. Be careful here.

alias: Tasmotas Group Firmware upgrade
sequence:
  - service: mqtt.publish
    data:
      topic: cmnd/tasmotas/UPGRADE
      payload: "1"
mode: single
icon: mdi:android


Hmm - cmnd/tasmotas/backlog is not doing anything.
I did send without template - but none of the tasmotas changed their time.
alias: Tasmota Group Command Time Set
sequence:

  • service: mqtt.publish
    data:
    topic: cmnd/tasmotas/BACKLOG
    payload: timezone +4:00
    mode: single
    icon: mdi:home-clock

Solved. Had to set the payload properly