Occupancy start Timer . Timer reset if motion detect
If occupied and timer >60minute or no motion detect > 30, notify security staff to knock and check. Basically assume there is problem and check on person if not moving for 30 minutes or in bathroom more than an hour. Of course maybe view the Data collected for some period to determine correct time for occupancy and no motion.
No. I cannot determine the
Detection method of the device but also I do NOT know method to detect heartbeat in room and accurately guess dead or alive. I do know method for
detect object moving in room(motion detection) - detect change to room dimension and object placement (sonic sensor)
detect object enter exit room (beam detector…2 placed on opposite side door or similar method)
I believe heat detection may be used to detect person but it depend your real goal. Currently i imagine hospital where patient death is not garuntee and maybe saving life is possible. In this case waiting for body to lower is too late and sign of death i imagine. But temperature data may be useful along with other sensor to detect condition. I think the basic concept of
verify person entry/exit
watch the time of presence and alert
If too long
This basic concept may be enough to both prevent some death and detect death if done well.
Two motion sensors in a row. Must be placed on distance from each other. Like, one in the front room above the entrance of the WC, one in the WC room it self.
Person enters:
Sensor 1 goes on, after that sensor 2 goes on.
Person is on the WC
Only sensor 2 is on, but when sitting quiet, can be off too.
Person leaves:
Sensor 2 goes on, after that sensor 1 goes on.
So the third point is important. If that sequence does not happen in reasonable time, person is still inside and alarm goes on.
To detect occupancy the best sensor I know is this
Or this one. It packs a microwave sensor, like the aqara fp1, which is the best type of sensor you can find for occupancy purposes, plus a number of other sensors in one device.
Both can detect presence without motion. I mean, it needs motion, but these sensors are so sensitive they’ll trigger with a deep breathe.
Integrate with HA via Esphome, but some work and testing is involved, I haven’t done it myself yet, but plan to very soon once I had some time to dedicate to it, below is some further info found on the forum, and an Arduino code that can be used with Esphome as a custom component.