I'm having some issues with Macros, I think its a bug but could be me, using 3.3.1
If I setup a macro to turn on a piece of equipment wait 1 second and turn it off, then attach that macro to a sensor it works. When sensor is open the macro doesn't run and when sensor is closed the macro runs over and over.
I only want it to run once and this is where the problem occurs.
At the end of the macro I add a step to disable the sensor, this does cause the macro to run only once so the sensor seems to get disabled however when I view the ATO sensor tab it still shows it's on and when I click the on/off button nothing happens for it or any other sensors setup up. If I click on/off, leave tab and return, the change is reflected on other sensors but the sensor I just disabled via macro will go off but immediately come back on. Also the communication from UI to system stops, it's like the program is in a loop it can't exit. When I try to change settings they don't take effect as it's not communicating, press refresh and it won't reload. I then power cycle the Pi and I'm able to delete this macro and everything will resume back to normal and I can turn on/off sensors again so it does repair itself once the macro is gone.
This is how I set it up, the last line is what breaks it.
My idea is another macro is triggered via a timer, that macro will enable this sensor which is in a closed position, once it opens it triggers this macro that switches some equipment and then disables the sensor as its no longer needed.