This is a continuation of #67 (I am unable to re-open it for some reason).
This is exactly what I wanted - brilliant and fast solution (thank you), however this is what happens in my case:

EspruinoHub publishes presence 0 when it starts and immediately pushes correction: 1. Of course this is enough to trigger the action, and the garage gate opens... every time I restart EspruinoHub... :-(