Third Reality Motion Sensor Driver

Sharing here - I can’t find original Release thread. The driver appears written by @tmaster but the user profiles doesn’t show recent activity - or I would just have PM’d politely!

I have 8-10 Third Reality Motion Sensors. First, they work better than any other I’ve ever had. Until recently I used the driver Zigbee Generic Motion (No Temp). Recently after revamping all my Third Reality devices I located a more tuned driver that provided better more robust functionallity. That driver is from @tmaster I believe (based on its GNU and notes). I noted I was getting some errors after I switched over. These errors we basically race conditions and I’d find duplicate events in the log milli’s apart. Here’s a snippet of the devices’ log page:

I ran the driver through an AI check and it reported a duplicate event issue it located - I added the resultant code to my drivers after calling it ‘Custom’ and I’ve really knocked down the event logs! I’m sharing this information (not my customization!) to help others who may bump into this issue.

I only have one 3rd Reality PIR motion sensor, in my pantry. It does work great, and the battery lasts well over a year.

I haven't needed anything more than motion and battery from it, though a health-check and an online status attribute might be nice. I don't monitor it because it is not critical, and very physically visible if the light doesn't turn on, so I don't need advanced notice for it being offline, unlike temp sensors and such.

You don't provide the code here, but I assume that ping is giving you an online status attribute as one of the new attributes?

hiya- yea. In my specific case, I have 3 contact sensors and 2 motions sensors that very rarely get triggered, this in turn causes them to show in my Inactivity Tile (HD+ dashboard).
What started as me trying to fix some offbrand contact sensors, turned into a slightly larger project.

I didn’t provide the code, as it’s not mine - I just modded it for the Motion sensor. I think it originated either here or on Smartthings originally and I did put some effort into it. I’m okay with sharing if you PM but it is what it is! maintained by the person using it :slight_smile:

Some of the features (the donate and icons buttons were there originally and have not been touched):

Why not share it here anyway? People redistribute code they didn’t personally create all the time.

If it has an open source license included in the code, it most likely says you can redistribute it as long as you attribute the original author and don’t try to charge for access to it.