@olex.s This is great, thank you for sharing. Like you, I’ve been running MagicMirror on a PIR sensor connected to GPIO pins and it’s worked well but this MQTT setup is on another level!
I’ve never used HA, and MQTT is a whole new learning curve for me but it’s setup and working a treat, i love it.
I’m also running Rpisurv on another Pi and your code would be the icing on the cake for that, but i have no idea how to even implement this.
Anyhow, thought i would say thanks for the great work, it’s much appreciated and opened my eyes on what can be achieved.