thomasloven / hass-plejd

🔹 Plejd BLE integration for Home Assistant
87 stars 9 forks source link

HA Integration vs Plejd App when adding new devices #81

Open I-am-a-node opened 3 weeks ago

I-am-a-node commented 3 weeks ago

@thomasloven TACK! Thank you for creating this great integration for HA. Thanks for helping us making our system work better and giving us the option to integrate our smart devices. Your contribution is, according to my opinion, the better option to connect our Plejd devices into Home Assistant. Trying this out with Bluetooth proxy and a Olimex ESP32-PoE-ISO.

So to my issue... When using the HA integration it creates some issues using the Plejd-app. Example: when adding or setting up a new device.

The way it works now seem to be that the HA Integration is competing with the app for the connection to the Plejd server or API.

So now I need your advice please! Should I "Disable" the Integration during the short time when using the app, setting up a new unit? Or what should I do? Thanks

Plejdapp001 The App is "searching", trying to connect.

Plejdapp002 The App failed to connect.

Should there be a function pausing the HA Integration while using the app? What do you think?

thomasloven commented 3 weeks ago

Thanks!

From what I can tell each PLEJD can connect to the mesh and ONE other device simultaneously. So if you have two or more PLEJD, you should be able to connect to the mesh with both the app and HA - assuming they establish their connection to different devices. Unfortunately, there's no way to pick which PLEJD either should try to connect to, but it will probably try whichever is closest (i.e. has the strongest signal).

There's no cloud/api connection after the initial startup, by the way. The initial connection (e.g. when HA starts) downloads all the information about your mesh from the plejd API, and after that everything is entirey local through bluetooth.

I-am-a-node commented 3 weeks ago

@thomasloven Thanks for taking your time getting back to me.

Local is key. Less interference and dependency on outside sources and clouds is what I want. Your system has to be able to run no matter what. Shame it needs that initial startup connection with their system when adding something. Well I'll might survive that.

Thanks for explaining, not that familiar with Plejd yet. Should have done my homework. This helps me understand a bit more.

The way it looks on the screen and how to interpret that error message in the app, for me, that tells me that there is an issue connecting/ communicating with the Plejd "server". It might only be an issue to connect to my first and only added device? Who is busy communicating with HA? I wild guess is that if there is a mesh it should be able to do both? Or it look at the app as part of the mesh.... I'll ignore that message and try to add the other devices anyway. If that doesn't work I might have to disable the HA integration while doing so. Thanks.