I have all of my ESPEasy units set up to look for an inbound command with a payload of 1. This will tell the units to push out their IP address so that I can always find them with ease.
As you can see I have a command for ON state with the payload of 1, this works fine from the front end. But, It is a switch, so it needs to be switched back to off to use it again. Short of defining on and off both with a payload of 1, is there a way to have a switch that always reverts to off or to have a push button that one can just click to send the command out to the units?
Or indeed put a very small delay in the action of the script and it will show as a switch and turn back off after the delay (assuming the “switch” look is what the op is after)
Alternative with the way is is now is I believe setting a state_topic that always returns a zero will achieve the same.
So, I added a second script to the above group and now there is a switch at the top by the name of the card. Can that switch be suppressed, so it is not seen or not usable?
That switch acivates all of the scripts on the page, really not wanted!