Page 1 of 1

ESPresense

Posted: Monday 14 February 2022 15:36
by Dave21w
Anybody had a play with this and integrated it into Domoticz ?

https://espresense.com/

Re: ESPresense

Posted: Wednesday 23 February 2022 9:29
by heggink
Looks pretty interesting and with autodiscovery, it should not require any additional work for the devices to integrate. Then the question is how to deal with these in domoticz... Have you done any work by now?

Re: ESPresense

Posted: Thursday 03 March 2022 9:04
by heggink
Started to mess around with a couple of these.

1) In terms of usage, it's only useful if you can use a fixed beacon to track. Phones normally don;t work because they spoof BLE MAC's for obvious reasons. There are apps that turn on a beacon but that then makes you trackable everywhere (malls, ..) which one may debate, is a good thing.

2) The domoticz integration would need a little work: through autodiscovery, rooms get picked up easily. Next then is to track mqtt messages for devices one would want to track. Building this in itself would not be overly complex since these messages are all sent on the "espresence/device" topic. Example:

Code: Select all

{"id":"iBeacon:32c45173-77f0-4c0e-bf2a-e21f044877b5-0-0","idType":99,"rssi@1m":-65,"rssi":-94,"raw":6.74,"distance":6.02,"speed":0,"mac":"663b3ba2f54c"}
Which is sent on the espresense/devices/iBeacon:32c45173-77f0-4c0e-bf2a-e21f044877b5-0-0/study_he topic meaning my phone is 6.74 somethings (meters?) away from the espresense module in my study. As said, it would just take a little logic in a (python type?) plugin to start tracking devices and assigning them to rooms. @moroen and I built the zwavejs2mqtt plugin before autodiscovery was built in natively which contains much of the base stuff we would need.

My key questioni is whether the first item can be resolved in a meaningful, workable way. Homeassistant has this built into the homeassistant app for android and apple devices but my understanding is that it's on 24/7. I would want it to be ONLY on within the geofence of my house. Maybe the domoticz app developer can help here.

H

Re: ESPresense

Posted: Thursday 03 March 2022 11:50
by Dave21w
I've only been looking at the data available with mqtt explorer at the moment, one strange thing I noticed was I have some BLE Temp/Hum sensors and the first day I used this it picked those up as well and you could extract the info quite easily if you wanted it but after that it completely ignored them !

Re: ESPresense

Posted: Tuesday 26 April 2022 18:50
by heggink
I am currently testing a first version of the plugin (pretty alpha/beta).
espresense.jpg
espresense.jpg (147.58 KiB) Viewed 3480 times
You can set 2 parameters in the esp devices through the plugin:
1) the exclude list of devices in the filter section
2) the "query device id's in the scanning section

The plugin then creates 2 domoticz devices per found device: an on/off to indicate if the device is picked up by any of the esp's and a text device indicating which room the device is in (smalles distance to the esp: if below 2.5 meters then "In" otherwise "Near").

If anyone is interested: https://github.com/heggink/domo-espresense.git

Re: ESPresense

Posted: Friday 29 April 2022 22:12
by Derik
nice
When i have time i test

Re: ESPresense

Posted: Saturday 30 April 2022 9:44
by heggink
At the moment, you cannot delete devices as I need an update in the domoticzEx framework that has not made it into the pi beta just yet.
The plugin is based on the domoticzEx framework so only newer betas will work.

Sent from my SM-G980F using Tapatalk


Re: ESPresense

Posted: Sunday 05 June 2022 14:53
by goedh452
Great plugin! I'm testing with 4 iPhones. It seems that the ID is nog unique but is the iPhone type. I've 2 iPhones with the same ID in the MQTT. The plugin therefor doesn't create a new device but updates the device with info coming from 2 different iPhones. Could that be correct?

Re: ESPresense

Posted: Wednesday 01 November 2023 4:51
by antoni
Sorry, I'm new, could be basic, but, how can I test the plugin, what is the procedure to install it or run?

Thanks,

Re: ESPresense

Posted: Wednesday 01 November 2023 9:21
by waltervl
For basic python plugin installation and usage check wiki page https://www.domoticz.com/wiki/Using_Python_plugins
It seems that this plugin does not have extra installation Instructions on its github repository.

Be sure you have python already available in Domoticz, see in your domoticz page Setup - About. Python version should be shown. If not check the same wiki page for instructions.