Presence detection through ORBI router
Moderator: leecollings
-
- Posts: 2015
- Joined: Monday 02 April 2018 20:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: France
- Contact:
Presence detection through ORBI router
If you own an ORBI Router (with or without Satellite), here is a small plugin you can use to track MAC@ presence or not.
https://github.com/pipiche38/Orbi-Presence
https://github.com/pipiche38/Orbi-Presence
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
-
- Posts: 68
- Joined: Sunday 10 June 2018 16:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Presence detection through ORBI router
Hi, I'm not getting this working in my system.
I've installed the requests module.
Afterwards I've followed the 'Installation' instructions.
I've changed (in plugin.py) the location of the requests module to '/home/pi/.local/lib/python2.7/site-packages/' as I think it's located there.
I get the following error:
I've installed the requests module.
Code: Select all
pip install requests
I've changed (in plugin.py) the location of the requests module to '/home/pi/.local/lib/python2.7/site-packages/' as I think it's located there.
I get the following error:
Does anyone have a clue what's wrong?2019-11-28 21:30:21.860 Error: (orbi) 'onStart' failed 'KeyError'.
2019-11-28 21:30:21.860 Error: (orbi) ----> Line 208 in '/home/pi/domoticz/plugins/Orbi-Presence/plugin.py', function onStart
2019-11-28 21:30:21.860 Error: (orbi) ----> Line 78 in '/home/pi/domoticz/plugins/Orbi-Presence/plugin.py', function onStart
-
- Posts: 2015
- Joined: Monday 02 April 2018 20:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: France
- Contact:
Re: Presence detection through ORBI router
I don't think this related to your path.
The issue here is related to loading the Icon.
Could you check that all files in the folder are readable. Especially ihome.zip
Eventually, could you got into Domoticz -> More Options -> Custom Icons
And remove Anyone Home (The icon looks like a Home).
Then you restart the plugin
The issue here is related to loading the Icon.
Could you check that all files in the folder are readable. Especially ihome.zip
Eventually, could you got into Domoticz -> More Options -> Custom Icons
And remove Anyone Home (The icon looks like a Home).
Then you restart the plugin
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
-
- Posts: 68
- Joined: Sunday 10 June 2018 16:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Presence detection through ORBI router
Cheers,
Did both and now it works.
Not sure what the error caused, guess the icon.
Thanks!
Did both and now it works.
Not sure what the error caused, guess the icon.
Thanks!
-
- Posts: 2015
- Joined: Monday 02 April 2018 20:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: France
- Contact:
Re: Presence detection through ORBI router
Great would you mind sharing the logs when it worked ?
Envoyé de mon iPhone en utilisant Tapatalk
Envoyé de mon iPhone en utilisant Tapatalk
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
-
- Posts: 2015
- Joined: Monday 02 April 2018 20:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: France
- Contact:
Re: Presence detection through ORBI router
Be aware that orbi allow only one connection at a time, so either the plugin , or you via web to admin orbi or via the orbi app
Envoyé de mon iPhone en utilisant Tapatalk
Envoyé de mon iPhone en utilisant Tapatalk
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
-
- Posts: 68
- Joined: Sunday 10 June 2018 16:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Presence detection through ORBI router
Here is the log. It's not working very good at the moment.
My phone is still online, for more than 10 minutes while I'm not connected to wifi. And logged out on orbi on all devices.
2019-11-28 22:33:26.637 Error: Orbi hardware (10) nothing received for more than 1 Minute!....
2019-11-28 22:33:27.638 Status: (Orbi) Stop directive received.
2019-11-28 22:33:27.638 Status: (Orbi) Exiting work loop.
2019-11-28 22:33:27.938 Status: (Orbi) Stopping threads.
2019-11-28 22:33:27.938 Status: (Orbi) Stopped.
2019-11-28 22:33:27.938 Status: (Orbi) Started.
2019-11-28 22:33:27.637 Error: Restarting: Orbi
2019-11-28 22:33:29.780 (Orbi) onStart called
2019-11-28 22:33:29.781 (Orbi) Mode6: 0
2019-11-28 22:33:29.781 (Orbi) Debug logging mask set to: NONE
2019-11-28 22:33:29.781 (Orbi) --> {}
2019-11-28 22:33:29.781 (Orbi) Uploading Orbi-Presence Icons
2019-11-28 22:33:29.785 (Orbi) Images: {'idetect-home': <Domoticz.Image object at 0x68e9bae0>}
2019-11-28 22:33:29.785 (Orbi) Images: idetect-home ==> Id: 104, Name: Anyone Home
2019-11-28 22:33:29.785 (Orbi) --> homeiconid: 104
2019-11-28 22:33:29.778 Status: (Orbi) Entering work loop.
2019-11-28 22:33:29.778 Status: (Orbi) Initialized version 0.0.4, author 'pipiche38'
2019-11-28 22:33:29.785 Status: (Orbi) - watching MAC@: xx:xx:xx:xx:xx:xx
2019-11-28 22:33:29.785 Status: (Orbi) Connect to Orbi
2019-11-28 22:33:41.780 (Orbi) MAC@ present are : ['xx:xx:xx:xx:xx:xx']
2019-11-28 22:33:41.780 (Orbi) Telefoon Werner is at home
2019-11-28 22:33:41.780 (Orbi) @Home: 1 On, oneOn: True
-
- Posts: 2015
- Joined: Monday 02 April 2018 20:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: France
- Contact:
Re: Presence detection through ORBI router
From the log it is on , so it does detect the presence. What do you feel is not working
Envoyé de mon iPhone en utilisant Tapatalk
Envoyé de mon iPhone en utilisant Tapatalk
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
-
- Posts: 2015
- Joined: Monday 02 April 2018 20:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: France
- Contact:
Re: Presence detection through ORBI router
There are 2 aspects :
1- i don’t know how long time orbi needs to detects the device is not present anymore. Probably between 5 to 20’ . This is based on DHCP lease time of up address. And this makes sense
2- the plugin pool on a regular basis the information.
In case you want an instant present or not, I think you need to look for alternatives based on Bluetooth and beacon
Envoyé de mon iPhone en utilisant Tapatalk
1- i don’t know how long time orbi needs to detects the device is not present anymore. Probably between 5 to 20’ . This is based on DHCP lease time of up address. And this makes sense
2- the plugin pool on a regular basis the information.
In case you want an instant present or not, I think you need to look for alternatives based on Bluetooth and beacon
Envoyé de mon iPhone en utilisant Tapatalk
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
-
- Posts: 2015
- Joined: Monday 02 April 2018 20:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: France
- Contact:
Re: Presence detection through ORBI router
For instance you can check by connecting to orbi and check attached devices to see how long it takes.
But it will depend on the time when the up address was given.
Envoyé de mon iPhone en utilisant Tapatalk
But it will depend on the time when the up address was given.
Envoyé de mon iPhone en utilisant Tapatalk
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
If the plugin provides you value, you can support me with a donation Paypal.
Wiki is available here.
Zigbee for Domoticz FAQ
-
- Posts: 535
- Joined: Thursday 02 April 2015 8:46
- Target OS: Linux
- Domoticz version: 2020+
- Location: The Netherlands
- Contact:
Re: Presence detection through ORBI router
Hi pipiche,
If you want to join forces and optimize the Orbi tracker in my iDetect plugin, then you are more than welcome to do so.
https://www.domoticz.com/forum/viewtopi ... 60#p229659
I already have a crude implementation based on the url you used in your plugin (thank you for that!).
iDetect started out as a simple poling script for a Asus ssh router, but it is becoming more of a framework that could potentially integrate every kind of tracking we would like.
If you want to join forces and optimize the Orbi tracker in my iDetect plugin, then you are more than welcome to do so.
https://www.domoticz.com/forum/viewtopi ... 60#p229659
I already have a crude implementation based on the url you used in your plugin (thank you for that!).
iDetect started out as a simple poling script for a Asus ssh router, but it is becoming more of a framework that could potentially integrate every kind of tracking we would like.
Who is online
Users browsing this forum: No registered users and 1 guest