cancel
Showing results for 
Search instead for 
Did you mean: 

STM32WB55: Rejoining a Zigbee Home Assistant network

Hesseltjuuh
Associate III

Hello,

 

I'm trying to create a smart device to connect to my Home Assistant network using Zigbee. So far, I've been able to connect to the network and control a light (turning it on and off), which works perfectly.

 

The issue I'm now facing is rejoining the network. If I cut the power to my STM32WB55 and turn it back on, the device won't reconnect to Home Assistant. The only way to reconnect is by enabling "Permit Join" in Home Assistant, which starts the device interview process again.

 

I suspect the problem lies in the function shown in the picture below, where I set startupControl to ZbStartTypeJoin. Perhaps I need to set this to ZbStartTypeRejoin, but I'm unsure if this is indeed the issue. Additionally, how can I create a function that allows the device to join the network when, for example, a button is pressed for 3 seconds?

Hesseltjuuh_0-1735907291352.png

 

Thanks,

 

Hessel Jilderts

 

0 REPLIES 0