hello im trying to use the script above but zigbee are unreachable until I change back to the original file from the guide, can you spot what I am doing wrong?
//remove old file
rm ./tuya/tuya_start.sh
//make new file
cat >/tuya/tuya_start.sh <<EOF
#!/bin/sh
while true; do
pgrep -x serialgateway >/dev/null
if [[ $? -ne 0 ]] ; then
echo “Restarting SerialGateway: $(date)” >> /var/log/serialgateway.txt
/tuya/serialgateway &
fi
sleep 30
done &
EOF
//set permissions just in case
chmod 755 /tuya/tuya_start.sh
reboot
it looks like it should work and I just cant figure it out.
do I have to make /var/log/serialgateway.txt myself or will it be created?
or something else? any and all ideas are welcome
Thank You!!!
and its kind of but not really working
it reads 1 when its connected, and when its not connected I get a error message in the log saying the command failed… and it stays 1
this is what I ended up with I added " ESTABLISHED" just to make sure it was connected and not just trying to connect
if u use this just make sure that you add or remove enough spaces " " between 8888 and ESTABLISHED so it can get a match, this should be 35 chars long in total
Hello,
I try and try, but I fail.
I get the same error over and over again when entering the KEK code:
What am i doing wrong?
C:\Users\Milan>lidl_auskey_decode.py
Enter KEK hex string line> 39713448 4B4F666C 367C7943
526C3A39
Traceback (most recent call last):
File "C:\Python32\SCRIPTS\lidl_auskey_decode.py", line 54, in <module>
kek = _decode_kek(_get_bytes(input("Enter KEK hex string line>")))
File "C:\Python32\SCRIPTS\lidl_auskey_decode.py", line 52, in _get_bytes
return unhexlify(a[0] if len(a)==1 else a[1])
TypeError: 'str' does not support the buffer interface
Thank you, on my pc it doesnt accept the string, so it must have been something wrong.
Can you please tell me whith which program do you work?
I have 3.2 python, and use that script.
Error i get:
(base) C:\Python32>lidl_auskey_decode.py
Enter KEK hex string line>397134484B4F666C367C7943526C3A39
Traceback (most recent call last):
File "C:\Python32\lidl_auskey_decode.py", line 54, in <module>
kek = _decode_kek(_get_bytes(input("Enter KEK hex string line>")))
File "C:\Python32\lidl_auskey_decode.py", line 52, in _get_bytes
return unhexlify(a[0] if len(a)==1 else a[1])
TypeError: 'str' does not support the buffer interface
Just wanted to thank @bool2 for the comprehensive and easy to follow guide on getting this working with ZHA. I was using a Sonoff Bridge, but I was experiencing a random number of my battery powered sensors going unavailable at random times. I just assumed that they were not very good but after reading that wifi zigbee bridges are not all that I got a Lidl bridge, followed your guide and was up and running in 10 mins. Took me a bit to migrate the 40 odd devices I had but since then I’ve never had a device not check in within 3 hours. No more running around the house at the weekend “re-adding” sensors!
Sending /tmp/firmware.gbl, 1062 blocks: Give your local XMODEM receive command now.
Xmodem sectors/kbytes sent: 0/ 0kRetry 0: Cancelled
Transfer incomplete
Successfully flashed new EZSP firmware! The device will now reboot.
I can’t seem to get the firmware to update. I’m running the script from a RasPi (running Rasbian 10, Buster). I’ve unplugged the device and tried several time, all without luck. Any ideas?
I got a Moes Wired Smart Gateway wich is not the TYGWZ-01, but the NH-GWZ1 with board revision 1.0.1. The board seems to be the same, except that the board is blue and the shape is a bit different. The hack described in this topic also applies for that gateway
Hello. I normally use the Zha integration, but I did get zigbee2mqtt running with my controller briefly when I wanted to compare the quirk handling for one of my devices. So yes, I think you should be able to get it working with zigbee2mqtt.
So yeah i was seeing mine also in zigbee2mqtt, but for some reason it didn’t work. To get it to work, the firmware has to be 6.7.8. After that, zigbee2mqtt needs the following configuration
@bool2 Also a heartfelt thank you from me. Everything worked perfectly on the first try! Awesome work.
BTW I used a Raspberry Pi to make the serial connection, using minicom. So if you have a Raspberry Pi around, there’s no need to go buy new hardware. Some useful links for those who want to go that way: