Open ztdan4ik opened 3 weeks ago
Probably you have broken zigbee chip firmware. You can try to flash new firmware via this integration: https://github.com/AlexxIT/XiaomiGateway3?tab=readme-ov-file#gateway-controls
Probably you have broken zigbee chip firmware. You can try to flash new firmware via this integration: https://github.com/AlexxIT/XiaomiGateway3?tab=readme-ov-file#gateway-controls
Its doesn't work for me, same as in this issue https://github.com/AlexxIT/XiaomiGateway3/issues/1042 So, I didn't flash my chip and running original fw. Originally I had a problem on a stock fw for getaway as well, didn't flash anything and device was able to connect with getaway.
So you have problem on stock or not?
Originally I had a problem on a stock fw for getaway as well
device was able to connect with getaway
Show integration diagnostics.
@AlexxIT first of all thanks for your time! Let me try to give you all the information:
I have: Xiaomi Multimode Gateway (EU) (YTC4044GL) Acara Wireless Button (WXKG12LM) Gateway at the beginning was on stock fw 1.5.0
"192.168.1.174 [FWUP] Can't update firmware"
sock.connect((host, 8889))\nConnectionRefusedError: [Errno 111] Connection refused",
[2024-10-28 22:17:28] error: z2m: Error while starting zigbee-herdsman
[2024-10-28 22:17:28] error: z2m: Failed to start zigbee
[2024-10-28 22:17:28] error: z2m: Check https://www.zigbee2mqtt.io/guide/installation/20_zigbee2mqtt-fails-to-start.html for possible solutions
[2024-10-28 22:17:28] error: z2m: Exiting...
[2024-10-28 22:17:28] error: z2m: Error: spawn udevadm ENOENT
Zigbee2MQTT add-on config:
data_path: /config/zigbee2mqtt
socat:
enabled: false
master: pty,raw,echo=0,link=/tmp/ttyZ2M,mode=777
slave: tcp-listen:8485,keepalive,nodelay,reuseaddr,keepidle=1,keepintvl=1,keepcnt=5
options: "-d -d"
log: false
mqtt:
base_topic: zigbee2mqtt
server: mqtt://core-mosquitto
user: mqtt
password: 123$mqqt@
serial:
serial:
port: tcp://192.168.1.174:8888
adapter: ezsp
Mosquitto broker add-on config:
logins:
- username: mqtt
password: 123$mqqt@
require_certificate: false
certfile: /ssl/fullchain.pem
keyfile: /ssl/privkey.pem
customize:
active: false
folder: mosquitto
Here is latest diagnosis file: xiaomi_gateway3-01JBAB5ZDSY0Q0F4RDZ70WY12M-Mi Smart Home Hub-6b27152d9593e2ecd151070cb5737591-3.json
So, as result any of 3 modes doesn't for me:
You gateway in some crazy state. It has broken zigbee fw. And it has broken gateway fw. I haven't checked zigbee chip flashing logic several months. Maybe it's broken. But first, you should to do, is to fix zigbee chip firmware.
If you really has 1.5.0 firmware (as diagnostics said), you can try to flash zigbee chip with this script https://github.com/zvldz/mgl03_fw/tree/main/zigbee
Turn off Hass and reboot gateway before any manipulations!!!
Diagnostic says 1.5.0 but when I login via telnet it says FIRMWARE: 1.5.6_0001 And when I fetch device from cloud with integration it says 1.5.6
Try to flash older gateway firmware. Linked script not support new ones.
A flashed gateway and zigbee chip but still cannot access with ZHA :(
Looks like there is a problem with flashing zigbee chip.
$SX -vv -X -b "$FIRMWARE_FILE" < $DEV > $DEV
- syntax error: unexpected redirection
Here is outputs:
UPD
/bin/sx was broken, link for download this tool is invalid in script. I've download it from http://master.dl.sourceforge.net/project/mgl03/bin/sx?viasf=1
Now fw script for chip stuck on
Sending ncp-uart-sw_mgl03_6_6_2_stock.gbl, 1443 blocks: Give your local XMODEM receive command now.
Simular to the comment here https://github.com/AlexxIT/XiaomiGateway3/issues/1042#issuecomment-1509930395 but his solution doesn't work for me as Lumi_Z3GatewayHost_MQTT failed to start with error 382: emAfResetAndInitNCP: Assertion 0 failed.
UPD2 I've tried to run manually fw process:
# restart
echo -en "2" > /dev/ttyS2
sleep 5
# Kill the processes
killall socat
killall ser2net
killall daemon_app.sh
killall Lumi_Z3GatewayHost_MQTT
sleep 15
# send v7
echo -en "\x7d\x31\x43\x21\x57\x54\x2a\x12\x05\x87\x7e" > /dev/ttyS2
sleep 5
# ask2
echo -en "\x82\x50\x3A\x7E" > /dev/ttyS2
sleep 5
# Rebooting to bootloader v7
echo -en "\x22\x40\x21\x57\x54\xa5\x14\x21\x08\x7e" > /dev/ttyS2
sleep 5
# sending upload command
echo -en "1" > /dev/ttyS2
sleep 5
# upload fw
/data/sx -vv -X -b "/tmp/ncp-uart-sw_mgl03_6_6_2_stock.gbl" < /dev/ttyS2 > /dev/ttyS2
and got the same result: stuck on ...Give your local XMODEM receive command now.
Hi @AlexxIT No any ideas how to flash zigbee chip in my case?
You can send me telnet access to your gateway. You can open port on router or use ngrok (same idea but 22 port): https://github.com/AlexxIT/go2rtc/wiki/Tunnel-RTSP-camera-to-Intenet You can find contacts in github profile.
Hi all, I've researched all issues here and didn't find any which fits my issue.
A can't connect to getaway with ZHA, openmiio agent fails on connection from ZHA:
I've tried also on stock firmware 1.5.0 - no luck.
Any ideas how to work it out? Or where I'm wrong. Thanks in advance.
HA: 2024.10.3 Xiaomi Gateway 3 for Home Assistant: 4.0.6 Device: Xiaomi Gateway 3 FIRMWARE: 1.5.6_0001 (custom)
UPD Found an error in Lumi_Z3GatewayHost_MQTT