ioBroker / AdapterRequests

This Place is used to track the status of new Adapter-Requests.
248 stars 36 forks source link

ESPresence adaptation #708

Open Krantak opened 2 years ago

Krantak commented 2 years ago

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

ldittmar81 commented 2 years ago

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

Krantak commented 2 years ago

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

DonPosei commented 1 year ago

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.

ticaki commented 9 months ago

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.

DonPosei commented 9 months ago

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

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

ticaki commented 9 months ago

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.

DonPosei commented 9 months ago

Bedarf ist angemeldet!

🤪😃🤣

ticaki commented 9 months ago

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

ticaki commented 9 months ago

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

raschy commented 8 months ago

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.

ticaki commented 8 months ago

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.

raschy commented 8 months ago

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

ticaki commented 8 months ago

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