Read the statement by Michael Teeuw here.
MMM-MQTTScreenOnOff - alternative to PIR
-
@sdetweil Yes, the commands are both in the options object and can be changed to anything.
-
@olex.s great, thanks
-
@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.
-
As you know for sure I‘m really a fan of MMM-Pir - for (my) good reasons.
For a friend of mine I‘ve build a second mirror and because he is heavily engaged in smarten his home :-) I‘ve considered to use alternatives to a PIR sensor - because they are definitely unsmart…
With this I‘ve seeked for an integration for his homee solution which is not really capable for MQTT and randomly found a really cool device which I would like to share with you, guys!
This is not a „motion“ sensor but a real „presence“ sensor (radar based, not infrared) which even is able to identify a silently sitting person!
In addition this genius thingy talks MQTT, delivers the „presence“ status in a JSON object and so it is absolutely easy to use it with magic mirror and the herein presented module MQTTScreenOnOff.This sensor is pretty expensive and invented and build by a small startup here in Germany 🇩🇪 .
You can find this sensor here.
The webpage is in German but for some reason the default UI is in English :-)
From my perspective this is defnitely worth the money (this is the fourth radar sensor I‘ve bought but the first one which is in the near of „working“)The mqttTopic transmitted is: „tele/senvolon/STATE“ and the mqttPayloadOccupancyField is „presence“.
(The middle part is configurable in the sensor‘s UI, I‘ve decided to use vendor‘s name).I REALLY miss the nice animation and the dimming of MMM-Pir but I‘m definitely thinking about to use this sensor as well.
(Which would be a major effort because my Mirror has an exact slot for the PIR sensor which is round and this sensor is squared so I will have to do some rough wood-work. On the other hand I MAY place the sensor away from the mirror on the opposite wall or in an other place and hide the hole from PIR sensor ….)Nice MQTT module - thanks for this idea!
Warmest regards,
Ralf -
@rkorell leave the pir sensor there, just use the other. disable one module, add the other.
i have a zigbee sensor on my office wall, and at the end of the hall and on the fireplace, they control my
office desk light, hall light, and lights over the kitchen island
all collected by zigbee2mqtt which feeds mqtt into home assistant
all running in docker containers.my mirror visibility is controlled by camera motion today, but now that i have the hall sensor, i can move to ha automations
fun stuff
-