Also a feedback from my side:
I did the hardware mod and use ZHA (with a zigbee dongle).
I also use Node Red and this simple json post with state off did the the job.
No appdaemon needed, no flickling of code.
Thanks for sharing!
And when I understand it correct the “ghost false positive” are also now fixed: