AdapterRequests icon indicating copy to clipboard operation
AdapterRequests copied to clipboard

ESPresence adaptation

Open Krantak opened this issue 2 years ago • 13 comments

Hello together

duing my daily search on nice automations i found the ESPresence project. This is a presence detection by using several ESP32 boards and the bluetooth connection to allocate your position in the network.
As I understood this is at the moment only usable in combination with home assistant.

Maybe some of the software engineers here are also intrested in this project.

https://espresense.com

Kind regards

Krantak

Krantak avatar Mar 03 '22 18:03 Krantak

It uses MQTT to communicate with HA. You can use the MQTT Adapter for it.

ldittmar81 avatar Mar 03 '22 20:03 ldittmar81

Hello Idittmar81

Yes you are right the ESP use MQTT for the communication. The Extraction of the data transmitted is done by home assistant. This is what I need to use it as a kind of presence notification in the rooms.

Kind regards

Krantak

Krantak avatar Mar 21 '22 22:03 Krantak

I am also interested in this project. Unfortunately, I can't program, but I'm happy to share my data if I can test something for this project. I have two ESP32s installed in my house and more are waiting to be used. My wish: a "teach-in mode" This "teach-in mode" is supposed to help me to uniquely identify the individual Bluetooth IDs. Currently, I have a list of more than 30 IDs, of which I can only uniquely assign 2. So how am I supposed to check for presence (of a specific person) if I can't assign the ID to a person? Maybe it's a bit of Orwell, but I'd like to program something like a "Marauder's Map" in VIS so that you can see who's in which room in the house.

DonPosei avatar May 21 '23 10:05 DonPosei

Mit espresence bin ich auch gerade am spielen und mir fehlt ebenfalls der Adapter. Geht zwar mit dem MQTT-Adapter ist aber nicht praktisch.

Das schreiben eines solchen würde ich gerne übernehmen.

ticaki avatar Dec 18 '23 11:12 ticaki

Das schreiben eines solchen würde ich gerne übernehmen.

Wenn ich irgendwie kann stehe ich gerne für Tests zur Verfügung!

DonPosei avatar Dec 18 '23 14:12 DonPosei

Wenn ich einen Adapter habe dessen Tests keine Zumutung sind melde ich mich :) wird aber erstmal ne mqtt-client version sein - server baue ich dann bei bedarf später ein.

ticaki avatar Dec 18 '23 15:12 ticaki

Bedarf ist angemeldet!

🤪😃🤣

DonPosei avatar Dec 18 '23 15:12 DonPosei

ok mit server... geht auch schon, jetzt fehlt nur noch der ganze rest :)

ticaki avatar Dec 18 '23 18:12 ticaki

Hier ist das repo - Daten anzeigen geht, mit eigenem Server. Da soll aber noch mehr kommen. Aber jetzt muß ich erstmal schauen wie das mit mehreren esp und soweiter aussieht.

https://github.com/ticaki/ioBroker.espresense

Serverversion geht doch nicht so ohne weiteres, dort wird die config gespeichert und ich hab noch nicht raus bekommen wie ich retained speichern kann

ticaki avatar Dec 18 '23 22:12 ticaki

Schön dass du dich da dran gegeben hast. Hab gerade mal die Installation versucht - hat schon mal funktioniert. Welche Grundvoraussetzungen brauche ich. Irgendwas mit BLE? In der GUI sehe ich nur was von MQTT.

raschy avatar Dec 19 '23 16:12 raschy

Du brauchst einen Installation von ESPresense auf einem esp32 und ein BLE fähiges Endgerät https://espresense.com/beacons.

Der ESP32 mit ESPresense teilt seine Daten über mqtt mit der Wert und speichert dort auch teile der Konfiguration. Wenn du einen mqtt-server hast kannst du diesen nehmen. Habe jedoch gerade Code hochgeladen der einen funktionierenden Mqtt-Server enthält. Installiere den gleich bei mir und schaue dann morgen früh ob er stabil läuft.

Wenn die Basis sauber funktioniert mache ich einen Testtopic im iobroker-Forum auf.

EDIT: MQTT Server funktioniert. Kann jedoch bei einem Adapterneustart 2-3 Minuten dauern bis espresense einen verbindung herstellt.

ticaki avatar Dec 19 '23 23:12 ticaki

Kann ich nur bestätigen! In der Version 0.0.3 läuft der interne MQTT-Broker. Ich teste derzeit mit meinem Android-Mobiltelefon.

raschy avatar Dec 20 '23 09:12 raschy

Hier gehts dann weiter: https://forum.iobroker.net/topic/71189/test-adapter-espresense oder halt im issue teil vom adapter :)

ticaki avatar Dec 20 '23 13:12 ticaki