I recently bought an "Xtreme Smart Wifi Window/Door Sensor" model XHS7-2001-WHT. They are being sold at my local Princess Auto (for any Canadians who want to pick one up). It uses the Tuya CBU module which uses BK7231N. The flashing and auto configuration worked great. I switched it to use the door sensor driver no pull-up and it wakes up from deep sleep properly. The only real issue which is kind of a deal breaker is the time it takes to connect to the wifi/mqtt. A burglar would have to be kind enough to hold the door open for at least 5 seconds before the home system would receive the open signal. I wanted to see if anyone had a solution to this problem.
OpenBK seems just to send the status of the sensor at connection to the mqtt broker. So if the door is opened and closed within 5 seconds or so it just resends a closed signal. Is there an option that allows the signals to be queued and then sent to the mqtt broker? I would then at least get an open "blip" that I could work with.
I looked at the source code and noticed that with the door sensor it will automatically select quick wifi connect but I selected the flag anyway which made no difference. I did see mention of `RL_SUPPORT_FAST_CONNECT` which is disabled because of the conflict with where OpenBK stores settings in the flash. In the comments I've seen on github it would "only save 3-4 seconds." I think that is a long time when it comes to devices that are not powered all the time and need to go from deep sleep to wake to deep sleep. Any chance of shifting the settings to allow fast connect to work?
There was another post on the esphome (tinylibre) which talked about speeding up the wifi connecting by adding a feature that allows the use of a PSK (64-byte string) instead of the current passphrase. Any ideas if this is feasible? Maybe this is already a feature and we only need to enter a 64 byte string and it will take it to be the PSK.
Thanks.
AI: Could you provide the current firmware version of your Xtreme Smart Wifi Window/Door Sensor? This might help in identifying if the issue is related to a specific firmware version.
OpenBK version 1.18.8
AI: Can you share more details about your MQTT broker and network configuration? This information could be crucial in understanding the delay in connection time.
WPA2, mosquitto running on OpenWrt.
OpenBK seems just to send the status of the sensor at connection to the mqtt broker. So if the door is opened and closed within 5 seconds or so it just resends a closed signal. Is there an option that allows the signals to be queued and then sent to the mqtt broker? I would then at least get an open "blip" that I could work with.
I looked at the source code and noticed that with the door sensor it will automatically select quick wifi connect but I selected the flag anyway which made no difference. I did see mention of `RL_SUPPORT_FAST_CONNECT` which is disabled because of the conflict with where OpenBK stores settings in the flash. In the comments I've seen on github it would "only save 3-4 seconds." I think that is a long time when it comes to devices that are not powered all the time and need to go from deep sleep to wake to deep sleep. Any chance of shifting the settings to allow fast connect to work?
There was another post on the esphome (tinylibre) which talked about speeding up the wifi connecting by adding a feature that allows the use of a PSK (64-byte string) instead of the current passphrase. Any ideas if this is feasible? Maybe this is already a feature and we only need to enter a 64 byte string and it will take it to be the PSK.
Thanks.
AI: Could you provide the current firmware version of your Xtreme Smart Wifi Window/Door Sensor? This might help in identifying if the issue is related to a specific firmware version.
OpenBK version 1.18.8
AI: Can you share more details about your MQTT broker and network configuration? This information could be crucial in understanding the delay in connection time.
WPA2, mosquitto running on OpenWrt.