CFenner / HomeAssistant-Steinel-BT

Integration for Steinel Bluetooth Mesh Luminairs into Home Assistant
10 stars 0 forks source link

Help Wanted! #4

Open CFenner opened 11 months ago

CFenner commented 11 months ago

I recently installed some Steinel L810, L800 and IS180 at home and really would like to integrate them into Home Assistant.

Unfortunately I'm currently not able to access the BT mesh or make any sense out of the infos I have so far. From Steinel I got only this reply about the BT mesh configuration:

Die Bluetooth Spezifikation besteht hauptsächlich aus 2 Dokumenten: Mesh Profile: https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=457092 Mesh Models: https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=457091

Mit den Informationen sollte es möglich sein zumindest die grundlegenden Funktionen unserer Geräte zu nutzen. Weitere Daten können wir Ihnen leider nicht zur Verfügung stellen.

In the app there should be some information about the BT mesh network, but it's not accessible yet.

Diese Funktion ist noch nicht richtig integriert. Zum Beispiel ich als Android User habe noch keinen Zugriff auf dieses Menü an sich. Ob Ihre gewünschte Funktion geplant ist und wie das dann eingestellt werden kann, müsste ich dann auch mit der Softwareentwicklung abklären. Dies kann sich leider auf Grund von Urlaubszeiten noch etwas verzögern und wir würde Sie bitten sich für weitere Updates diesbezüglich noch etwas zu gedulden.

So I am very pleased for any help here.

CFenner commented 9 months ago

Just found out that Steinel is a partner of Silvair, which provides a repository about bt-mesh: https://github.com/SilvairGit/python-bluetooth-mesh

CFenner commented 8 months ago

This video explains how to use mitmproxy which I used to track the api calls the steinel connect app does: https://www.youtube.com/watch?v=RchCi6E2hVs

CFenner commented 8 months ago

Managed to record app requests with mitmproxy.

The network id can be acquired via https://connectapp.steinel.de/api/changes.

The mesh nodes and keys can be fetched via https://connectapp.steinel.de/api/project/network/{{network}}?force=false&version=10.

Both request need to be authenticated with email and password. The latter one also needs to pass a device header with an id that is yet not clear where it comes from.

NevelSavage commented 4 months ago

Hello Chistopher, I've been following the project for a while because I'm also very interested in this integration. I plan to monitor the BT data traffic from lamp to lamp or app to lamp in order to draw conclusions about the telegram traffic and hope to be able to recreate the telegrams in order to be able to control the lamp. For this I have ordered hardware from which I hope will be delivered soon. Since I'm not very good at Python, I'm hoping for synergies with you. Have you made any progress lately?

CFenner commented 4 months ago

Hey @NevelSavage, haven't made any progress but really would like to. I managed so start a BT debug profile in the iPhone and monitor the communication from the app. But could not make any use of the data I see there.