I have some water solenoids that are controlled by Sonoff SV’s flashed with tasmota.
WIFI reception can be a little patching where they are located, and every now and then they receive the command to turn on, but not the command to turn off.
I have PulseTime set, which is better than nothing because they wont run indefinitely if the off command is missed, but its set somewhat arbitrarily and static on the device.
Is there a way to turn on a tasmota switch for x with a single mqtt message?
If not, I guess i could create a number entity with an automation to update the PulseTime on the device when the number changes but that seems a little clunky, and it feels like there should be a better way, just not one ive been able to discover.
You can use a backlog command to do turn on, delay x, turn off. This is one message that concatenates multiple commands. See Tasmota commands documentation.
Yes. I use this on a tasmota plug to reboot my router as when off, HA control is lost, so this just runs a power off, wait and power back on cycle on its own.