ESPresense

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
Dave21w
Posts: 369
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

ESPresense

Post by Dave21w »

Anybody had a play with this and integrated it into Domoticz ?

https://espresense.com/
User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: ESPresense

Post 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?
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: ESPresense

Post 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
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Dave21w
Posts: 369
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: ESPresense

Post 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 !
User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: ESPresense

Post by heggink »

I am currently testing a first version of the plugin (pretty alpha/beta).
espresense.jpg
espresense.jpg (147.58 KiB) Viewed 3087 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
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: ESPresense

Post by Derik »

nice
When i have time i test
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: ESPresense

Post 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

Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
goedh452
Posts: 17
Joined: Thursday 08 August 2013 15:45
Target OS: -
Domoticz version:
Contact:

Re: ESPresense

Post 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?
antoni
Posts: 1
Joined: Wednesday 01 November 2023 4:49
Target OS: Linux
Domoticz version:
Contact:

Re: ESPresense

Post 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,
User avatar
waltervl
Posts: 5397
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: ESPresense

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests