Run command with rule on service stater to tasmota

And please be more specific. I’m guessing you’re talking about MQTT, but only since you are mentioning Tasmota: