Seiten

Sonntag, 23. Dezember 2018

FHEM presence functionality

Hello guys,

during christmas time i have checked the functionality to determine if someone is still at home or everybody has left and no one is at home.

Idea
We would like to close all of our shutters if we are leaving the home during the day for more than an hour. During this time the shutter should be closed automatically and opend up again if anyone is back at home.

FHEM is offering an module to send a standard ping request to the devices. It will check if the ping request has received an answer from the device or not.

But modern smartphone have energy saving modes which try to save battery. If it is not used, the wireless connection will be cut and the solution using the ping functionality will not work anymore.

Some guys at german FHEM Forum have published a solution which will be a two step solution.
First step will do a normal ping and the second step will be executed if the first ping was not sucessfull. For the second step the program arp-scan and hping3.

This solution looks very nice and is doing its jobs.

Please check the following post and FHEM Forum for current (23.12.2018) solution.

https://forum.fhem.de/index.php/topic,76342.msg769242.html#msg769242


Furthermore the user rights for user FHEM which is used for general FHEM installation whoudl be extended to execute super user rights to execute arp-scan and hping3 as well as the mentioned script.

Try it and give feedback about your experiences reagarding this solution.


Thank you.