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

Reconnecting loop keeps going after devices found, this makes them unavailable. #261

Closed
ProgrammerChris opened this issue Nov 30, 2022 · 9 comments

Comments

@ProgrammerChris
Copy link

ProgrammerChris commented Nov 30, 2022

After staring, it finds devices, then these lines come next:

2022-11-30` 01:20:27 INF [plejd-ble] BLE init done, waiting for devices.
2022-11-30 01:20:27 INF [plejd-main] Main init done
2022-11-30 01:20:27 INF [plejd-main] main() finished
2022-11-30 01:20:29 ERR [plejd-ble] Discovery timeout elapsed, no devices found. Starting reconnect loop...

and this loop keeps going.

  • Power cycleing the adapter does not help.
  • Restarting the addon does not help,
  • Restarting Home Assistant does not help.
  • Re-installing app does not help.
@ProgrammerChris ProgrammerChris changed the title Keeps reconnecting after devices found. Reconnecting loop keeps going after devices found, this makes them unavailable. Nov 30, 2022
@Mikro007
Copy link

Mikro007 commented Dec 3, 2022

I´m also having this problem...
To bad that it brakes down all automation for the lights and Plejd app need to go in for backup schedules.

@ErikThorsell
Copy link

ErikThorsell commented Jan 5, 2023

System Info:

Raspberry Pi 4
Home Assistant 2023.1.0
Supervisor 2022.12.1
Operating System 9.4
Frontend 20230104.0 - latest

Addon version: 0.9.1

Today I migrated my installation from an SD Card to an SSD. I did a full backup (System > Backups > Create Backup) which I later restored using the "Restore from backup"-functionality in HA.

I am now having similar issues as seen above.

These are the last logs from the addon before I migrated:

image

Everything was working fine :)

Now, after the initial discovery (where all my devices are correctly found) I see the following in the logs:

image

image

NOTE

I also had issues, initially, with deConz and my Conbee USB stick. I learned that there's an issue with USB-3 that I don't quite understand, but moving the SSD to a USB-2 port seem to have solved my deConz-problems.

However, the Plejd addon is still missbehaving.

Any help is greatly appreciated.

@ErikThorsell
Copy link

UPDATE

Ehr. Maybe moving the SSD to USB-2 solved the Plejd issues too. I just had to manually restart the addon. (Would be a PITA if the Pi cannot handle a reboot without me having to manually restart addons though...)

I won't call this a win yet but at the moment Plejd is working again.

@hultr
Copy link

hultr commented Jan 21, 2023

Just got the add-on and got this too :/ (on an x86 machine, onboard BT adapter, HA running in a proxmox VM, only other USB device is the Sonoff Zigbee dongle)

@ProgrammerChris
Copy link
Author

Just got the add-on and got this too :/ (on an x86 machine, onboard BT adapter, HA running in a proxmox VM, only other USB device is the Sonoff Zigbee dongle)

What fixed this for me was extending the BT dongle to be closer to the first node. No issues after that.

@hultr
Copy link

hultr commented Jan 23, 2023

ended up buying an external BT adapter (from the "tried" list), now it seems to work :). Guess it still could be a signal strength issue. The first Plejd device is only about 4 m away, but maybe the external adapter got better SNR or something.

@Lupi00
Copy link

Lupi00 commented Aug 14, 2023

ended up buying an external BT adapter (from the "tried" list), now it seems to work :). Guess it still could be a signal strength issue. The first Plejd device is only about 4 m away, but maybe the external adapter got better SNR or something.

Which one did you end up buying? And from where?

@ProgrammerChris
Copy link
Author

ProgrammerChris commented Aug 25, 2023 via email

@SweVictor
Copy link
Collaborator

Good to hear. Closing this issue as solved.

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

6 participants