Open rodalpho opened 1 month ago
This could be triggered by the timing sensitivity of the RCP protocol (as mentioned back when this feature got introduced, see https://github.com/home-assistant/addons/pull/3532#issuecomment-2076781028).
@tl-sl thoughts? Have you seen this on your end?
I have never tested this config via esphome myself (but I assume others must have). However usually the timeout errors indicate a failure to connect at all, which can often be caused by mismatched baudrates or some other network issue.
@rodalpho I suggest you double check that the uart baudrate is set to 460800 in Esphome config. Just in case make sure there are no Wifi links between HA server and SLZB-06. Finally can you try and test with the latest version of stock SMLIGHT firmware just to rule out any issues with the Esphome serial bridge.
That may actually be the issue-- checking their ESP config from the URL I linked above it specifies 115200 baud. So it looks like they provided an incorrect config. Unfortunately their flasher no longer works now so I'll have to contact the vendor. Will update if that fixes the issue.
Edit: I managed to get it to flash via the esptool.py CLI with the custom firmware generated from that YAML file with changed baudrate, but no connectivity. My guess is nobody has ever used this before and it's just broken. Guess I'll stick with a BT proxy unless they respond to my support request. Either way, not your problem!
## MDNS service settings
mdns:
services:
- service: "_slzb-06"
protocol: "_tcp"
port: 6638
txt:
version: 1.0
name: SMLIGHT SLZB-06
radio_type: znp
baud_rate: 115200
data_flow_control: software
That may actually be the issue-- checking their ESP config from the URL I linked above it specifies 115200 baud. So it looks like they provided an incorrect config. Unfortunately their flasher no longer works now so I'll have to contact the vendor. Will update if that fixes the issue.
Edit: I managed to get it to flash via the esptool.py CLI with the custom firmware generated from that YAML file with changed baudrate, but no connectivity. My guess is nobody has ever used this before and it's just broken. Guess I'll stick with a BT proxy unless they respond to my support request. Either way, not your problem!
## MDNS service settings mdns: services: - service: "_slzb-06" protocol: "_tcp" port: 6638 txt: version: 1.0 name: SMLIGHT SLZB-06 radio_type: znp baud_rate: 115200 data_flow_control: software
You are looking at the MDNS settings but they won't work for the OTBR addon because it doesn't support them. UART settings above in config
Ahh. So that wasn’t the problem then?
Ahh. So that wasn’t the problem then?
I think that you need to connect the OTBR addon in network mode, not USB
I did, as specified in my post opening this issue. If I configured it wrong would appreciate a correction.
I did, as specified in my post opening this issue. If I configured it wrong would appreciate a correction.
Did you change the mode to Thread before flashing the BT Proxy?
There's no way to do that, the default config is Zigbee-only, no thread or BT proxy. I followed their exact instructions to flash new firmware from the site I linked up top.
@rodalpho Did you flash the CC2652 Zigbee chip with the Thread firmware before installing ESPHome on ESP32? It can't work if thread firmware hasnt been installed.
I followed their instructions linked below (and in the OP), which did not tell me to flash anything separately. I have no way to go back to the stock firmware as their web flasher doesn't work, nor does the normal esphome web flasher, only the esptool.py on Linux actually flashed anything, and I can't find the stock firmware file anywhere.
I get the feeling I'm the first person to ever actually do this, maybe outside of internal testing, and it isn't really supported. It's all kinda janky as the home assistant ESPhome addon can't adopt it properly with an error on their th-bt github respository, but at least it works well as a PoE-connected bluetooth proxy.
They haven't responded to my support request yet but to be fair, the company is located in Ukraine.
Thread support is still fairly new, so maybe that step is missing from their instructions!
The web flasher should still work even with Esphome installed, see the FAQ section if its not working. https://smlight.tech/flasher/#SLZB-06 Failing that you can try install this firmware with esptool then update OTA. https://github.com/smlight-dev/slzb-06-firmware/releases
They haven't responded to my support request yet but to be fair, the company is located in Ukraine.
yet they have responded in this thread
Ahh didn't realize you worked there, thank you!
Web flasher through USB definitely didn't work, and that was using the same cable that worked with esptool. I followed the FAQ, other than the steps requiring cracking the case open. Updated drivers, held the tiny button down when booting, held it down while I clicked flash, etc.
Thanks for the link to stock firmware-- suggest documenting that on the site, or making it more clear if it's there already and I missed it. I'll sit down tomorrow, grab that, flash thread to the zigbee chip, then flash the ESP32 and cross my fingers.
Edit: Ahh I see that's the old open-source firmware, I didn't think of trying that and was looking for the newest one, 2.3.6.
(For the use case of matter:) If only SL provided an otbr-agent to run on their stick! We could just add the thing to our preferred network and operate stuff on the "right" layer instead of wrapping a lower OSI layer (with everything on top) into a higher one... (Also, obviously not considering multi-protocol here)
Describe the issue you are experiencing
I have a SLZB-06 (not SLZB-06M or any other variant) PoE network-connected device (ie, not USB) successfully flashed with their BTproxy+thread ESP32 firmware from the thread config halfway down on this URL. The BT proxy works great, but I can't get the OTBR addon to connect to this device successfully, it gives timeout errors.
The OTBR addon is configured as follows:
I tried other baudrates and also tried flow control on (the default). It's off above because I was following another git response saying it didn't like flow control, but that didn't fix the issue. My home assistant VM can connect to it on that port.
Full debug logs from the addon below:
What type of installation are you running?
Home Assistant OS
Which operating system are you running on?
Home Assistant Operating System
Which add-on are you reporting an issue with?
OpenThread Border Router
What is the version of the add-on?
2.9.1
Steps to reproduce the issue
See above
System Health information
System Information
Home Assistant Community Store
GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.34.0 Stage | running Available Repositories | 1390 Downloaded Repositories | 22 HACS Data | okHome Assistant Cloud
logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | okHome Assistant Supervisor
host_os | Home Assistant OS 12.4 -- | -- update_channel | stable supervisor_version | supervisor-2024.08.0 agent_version | 1.6.0 docker_version | 26.1.4 disk_total | 30.8 GB disk_used | 13.0 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | kvm board | ova supervisor_api | ok version_api | ok installed_addons | Terminal & SSH (9.14.0), Studio Code Server (5.15.0), Samba Backup (5.2.0), Advanced SSH & Web Terminal (18.0.0), ESPHome (2024.7.3), Cloudflared (5.1.17), Samba share (12.3.2), Portainer Agent (linux-ppc64le-2.20.3-alpine), Home Assistant Google Drive Backup (0.112.1), Scrypted (v0.114.0-jammy-full), Matter Server (6.4.1), OpenThread Border Router (2.9.1)Dashboards
dashboards | 4 -- | -- resources | 12 views | 9 mode | storageRecorder
oldest_recorder_run | August 3, 2024 at 6:27 PM -- | -- current_recorder_run | August 13, 2024 at 1:02 PM estimated_db_size | 163.50 MiB database_engine | sqlite database_version | 3.45.3Anything in the Supervisor logs that might be useful for us?
Additional information
No response