-
Notifications
You must be signed in to change notification settings - Fork 0
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
home assistant freezes when using magic switch bot #4
Comments
Please attach your logs. |
|
I changed some exception catching. |
it didn't help |
From what I can see, there's nothing wrong with the component that makes HA not starting. logger:
default: warn
logs:
custom_components.magicswitchbot: info
magicswitchbot: info |
no, the problem is not that HomeAssistant doesn't start, but that when using magic switch bot, my HomeAssistant stops working |
Still no logs from the component beyond warnings. |
I also have the original Japanese switchbot with it there is no problem. The xiaomi watch is connected directly to the server via Bluetooth |
OK, I see the problem now.
In my experience, I've had these issues when the bluetooth dongle (or internal bluetooth) is not close enough to the magic switchbot. I solved it by attaching an external dongle with an extension cable close enough to the devices. Currently I have 2 magic switchbots working fine, and my dongle (with its extension cable) is about 2 meters away. Sorry but I cannot help to improve the connection quality. I know that other devices work ok at further distance, but these devices are this way. |
is there any way to reduce the connection timeout? I have the whole home assistant freezes when connected |
Hello, @bezlitza. Thanks for all the info you provide. Several thoughts about your situation:
|
Dear ec-blaster, Second time it hang again, but after 30 minutes there was still no response. |
Hi, @Zylazy. Thanks for your logs.
|
Ok. I will, send it. I have enabed device_tracker: bluetooth, but I have disabled it now, so during the test the switchbot will be the only one. |
Hi @ec-blaster I have one suggestion/question. I have seen that you have defined the magicswitchbot.push service. Woulf it be possible to add a magicswitchbot.pull service also? |
@Zylazy: I'm studying your case, I don't know the reason you have such freezes, it didn't ever happen to me. Give me some more time... |
Thank you! Btw way, I have played with it today, and I could not reproduce the issue now. But I will continue the testing tomorrow. |
Hi! I have the same issue. There are 2 connected devices:
Home Assistant OS 6.2, core-2021.8.0b5 |
My problem is also still relevant |
I'm on vacation right now. |
Any progress? I confirm similar problems with extra USB bt dongle and without it (hasoss, raspberry pi 4). I also use ha builtin switchbot integration (no problems) and https://github.com/custom-components/ble_monitor. |
New version released. |
my HA may hang when using switchbot. Xpenology docker. HA and plugin latest versions

The text was updated successfully, but these errors were encountered: