Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All Plejd devices not available #84

Open
jesperrahmqvist opened this issue Oct 6, 2024 · 17 comments
Open

All Plejd devices not available #84

jesperrahmqvist opened this issue Oct 6, 2024 · 17 comments

Comments

@jesperrahmqvist
Copy link

jesperrahmqvist commented Oct 6, 2024

After the upgrade today to core 24.10.2 all my Plejd entities are marked as unreachable. I have tried restarting multiple times, reinstalling the integration in HACS. Still the same. Any ideas? Can I send some file or log to investigate?

@jesperrahmqvist
Copy link
Author

Nevermind this issue. Seems to be something with my BT dongle loosing communication somehow.

@pissten
Copy link

pissten commented Oct 19, 2024

I have the same problem. This integration is by far the best plejd integration for HA, out there. And it has been working great for a long period of time now. Since upgrade to 2024.10.0-3, I'm experiencing that all light entities are unavailable. Sometimes it has worked out to just restart the integration or even reboot. But now i can't get them working anymore :/

image

@pissten
Copy link

pissten commented Oct 23, 2024

Nevermind this issue. Seems to be something with my BT dongle loosing communication somehow.

Hi @jesperrahmqvist :)

What hardware are you running Home Assistant on?
On a rpi4 with the integrated BT radio, everything has been working great up untill 20024.10.x for me :S

@jesperrahmqvist
Copy link
Author

Home Assistant Green with a BT dongle. Realtek Bluetooth Radio.

@emilhja
Copy link

emilhja commented Oct 29, 2024

I have now same issue that all lights are unavailable. Have worked for approximately a month with no issues on rpi5 no additional Bluetooth dongle, with 20024.10.3/4 it worked for a day but not anymore.
I have removed integration, rebooted.
But all lights are still unavailable

@emilhja
Copy link

emilhja commented Nov 4, 2024

I have now same issue that all lights are unavailable. Have worked for approximately a month with no issues on rpi5 no additional Bluetooth dongle, with 20024.10.3/4 it worked for a day but not anymore. I have removed integration, rebooted. But all lights are still unavailable

Now it works again and the only change I did was adding a approved Bluetooth dongle from this site:
https://www.home-assistant.io/integrations/bluetooth#known-working-high-performance-adapters

It's a bit annoying it worked for a month without issues and then just stopped working. None the less, adding the bluetooth adapter made it work again.
bild

@AlexGustafsson
Copy link

AlexGustafsson commented Dec 22, 2024

I'm using an ASUS BT-500 that has been working for six months or so. I'm getting the following logs after enabling debug mode for the integration:

2024-12-22 13:27:34.090 DEBUG (MainThread) [pyplejd.cloud] Site data loaded
2024-12-22 13:27:34.090 DEBUG (MainThread) [pyplejd.cloud] ('Mesh Devices:', {'<MAC 1>', '<MAC 2>', '<MAC 3>', '<MAC 4>'})
2024-12-22 13:27:34.091 DEBUG (MainThread) [pyplejd] Devices:
2024-12-22 13:27:34.091 DEBUG (MainThread) [pyplejd] objectId='<OID 1>' address=11 rxaddress=None BLEaddress='<MAC 1>' name='Takspotlights' hardware='DIM-01' dimmable=True colortemp=False outputType='LIGHT' room='Garage' firmware='4.35.6' inputAddress=[11, 11] hidden=False
2024-12-22 13:27:34.091 DEBUG (MainThread) [pyplejd] objectId='<OID 2>' address=13 rxaddress=None BLEaddress='<MAC 3>' name='Gårdshus' hardware='SPR-01' dimmable=False colortemp=False outputType='LIGHT' room='Ovanvåning gårdshus' firmware='4.35.8' inputAddress=[13] hidden=False
2024-12-22 13:27:34.092 DEBUG (MainThread) [pyplejd] objectId='<OID 3>' address=14 rxaddress=None BLEaddress='<MAC 2>' name='Julstjärna' hardware='SPR-01' dimmable=False colortemp=False outputType='LIGHT' room='Ovanvåning gårdshus' firmware='1.0.10' inputAddress=[14] hidden=False
2024-12-22 13:27:34.092 DEBUG (MainThread) [pyplejd] objectId='<OID 4>' address=18 rxaddress=None BLEaddress='<MAC 4>' name='Julgran' hardware='SPR-01' dimmable=False colortemp=False outputType='LIGHT' room='Vardagsrum julgran' firmware='4.35.8' inputAddress=[18] hidden=False
2024-12-22 13:27:34.092 DEBUG (MainThread) [pyplejd] Scenes:
2024-12-22 13:27:34.092 DEBUG (MainThread) [pyplejd] sceneId='<SCENE 1>' index=4 title='Dagtid' hidden=False
2024-12-22 13:27:34.092 DEBUG (MainThread) [pyplejd] sceneId='<SCENE 2>' index=5 title='Dagtid' hidden=False
2024-12-22 13:27:34.095 DEBUG (MainThread) [pyplejd.ble] Trying to connect to mesh
2024-12-22 13:27:34.095 DEBUG (MainThread) [pyplejd.ble] Failed to connect to plejd mesh - No valid devices: {} ({'<MAC 1>', '<MAC 2>', '<MAC 3>', '<MAC 4>'})
2024-12-22 13:27:34.095 DEBUG (MainThread) [custom_components.plejd.plejd_site] Ping failed

Have you seen similar logs? I've tried updating the computer, the plugin and Home Assistant itself. I also tried removing and add the account to the plugin, which was successful and added all the devices, but they remain unresponsive. I also went into the Plejd app and updated all (but one) device.

@AlexGustafsson
Copy link

I've updated to v0.14.4 and added more devices to the mesh, it works for me again.

@dlarsson
Copy link

I recently upgraded from 0.11.x to 0.14.7, and for some reason I can't connect to the Plejd devices anymore. Reverting to the older version didn't help.

In the logs I see the following

2025-01-20 19:54:01.180 DEBUG (MainThread) [pyplejd.ble.connection] Trying to connect to BLE mesh
2025-01-20 19:54:01.181 DEBUG (MainThread) [pyplejd.ble.connection] Expected nodes: {'C623B3BD093E', 'EE7C06E45B88', 'F00D76847EDA', 'E8C43124BB93', 'DD46E61F2381', 'D19E0EC1C220', 'C91F7536E0CF', 'C8D88EBC5456', 'CBC6FA5E8C38'}
2025-01-20 19:54:01.181 DEBUG (MainThread) [pyplejd.ble.connection] Connectable expected nodes: {'C623B3BD093E', 'EE7C06E45B88', 'F00D76847EDA', 'E8C43124BB93', 'DD46E61F2381', 'D19E0EC1C220', 'C91F7536E0CF', 'C8D88EBC5456', 'CBC6FA5E8C38'}
2025-01-20 19:54:01.181 DEBUG (MainThread) [pyplejd.ble.connection] Seen nodes: {}
2025-01-20 19:54:01.181 DEBUG (MainThread) [pyplejd.ble.connection] Connectable, seen nodes: {}
2025-01-20 19:54:01.181 DEBUG (MainThread) [pyplejd.ble.connection] Sorted by signal strength: {}
2025-01-20 19:54:01.181 DEBUG (MainThread) [pyplejd.ble.connection] Failed to connect to plejd mesh - No valid devices: {} ({'C623B3BD093E', 'EE7C06E45B88', 'F00D76847EDA', 'E8C43124BB93', 'DD46E61F2381', 'D19E0EC1C220', 'C91F7536E0CF', 'C8D88EBC5456', 'CBC6FA5E8C38'})
2025-01-20 19:54:01.181 DEBUG (MainThread) [custom_components.plejd.plejd_site] Ping failed

Any idea what may cause this?

@janbrink99
Copy link

I have the same issue, none of my devices are available.

1 similar comment
@ravibagri5
Copy link

I have the same issue, none of my devices are available.

@AlexGustafsson
Copy link

How close to the bluetooth radio are your devices? In my case it seems to be working best when at least one device is very close (3m) despite the dongle (ASUS BT-500) advertising 40m range for BLE. I read somewhere (could very well be one of the GitHub issues for this repository) that the devices only support two connections - one for the mesh and one from the app. If you only one or two devices, I guess the mobile app could interfere as well.

@janbrink99
Copy link

Image
This is an example of the disconnects.

@ravibagri5
Copy link

ravibagri5 commented Jan 21, 2025

In my case the lights are in range of 3m. It works fine with home assistant bridge running on the same RaspberryPi. Also, the plejd app works quite smooth. I have tried discovering the devices using bluetoothctl and i can see all my device from same Pi.

@ricmik
Copy link

ricmik commented Jan 21, 2025

Same here, I have to restart my Bluetooth proxy quite often to have the integration working.

@prylmarknaden
Copy link

Same problem for me. Worked like a charm for several months but during the last week it lists all devices as unavailable no matter what I do. I tried reinstalling it, and it finds all the devices, but they immediately gets unavailable.

@Amix377
Copy link

Amix377 commented Jan 26, 2025

I have the same issue as the others unfortunately. I have the switcher WPH-01, and it become unavailable. Work great before, then got that issue, then works great again at one month and now it back...
I have HAOS on laptop with integrated BL.
In logs I can see many of that:

Switcher 4 pressed detected an event
09:06:58 - 15 minutes ago
Switcher 3 pressed detected an event
09:06:58 - 15 minutes ago
Switcher 2 pressed detected an event
09:06:58 - 15 minutes ago
Switcher 1 pressed detected an event
09:06:58 - 15 minutes ago

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants