Cloud-free integration with Home Assistant

Oh the joy to be free of the cloud. (Someone elses computers!)
First a disclaimer: You must fully understand the risks involved in carrying out procedures on this page. I am not responsible for anything that may happen to anyone or any property as a result of following instructions on this page. If you're not comfortable with this then don't read any more.


Here we document how to free your Silvercrest Gateway from the cloud for an offline integration into Home Assistant.

Steps are:

  1. Get the root password.
  2. Setup device for Home Assistant control
  3. Using Home Assistant's ZHA to integrate the device.

Getting root password

The process is documented here.

Setting up device for Home Assistant control

Before starting, ensure your device is on your local network. If you're unsure of its IP address, issue an ifconfig command on the serial console.

To set up this device we need to:

  1. Install a serial port to TCP/IP gateway program.
  2. Disable the Tuya Applications
  3. Set the TCP/IP gateway to boot on startup

1) Copy the MIPS(LX) compiled serial gateway to the device. Download here:

Serial gateway compiled for MIPS(LX) 53 kb (Source code)

From your host PC:

    cat serialgateway.bin | ssh -p2333 root@ "cat >/tuya/serialgateway"

2) Modify the boot script to disable the Tuya Applications and instead start the serial gatway.

On the device, execute the following:

if [ ! -f /tuya/ ]; then cp /tuya/ /tuya/; fi

cat >/tuya/ <<EOF
/tuya/serialgateway &
chmod 755 /tuya/serialgateway

This will backup the original script and replace it with a simpler one that simply starts serialgateway.

3) (Optional) Disable the Tuya customised SSH server and revert to the "standard" dropbear SSH server on port 22.

NOTE: After this step, the SSH server will be available only on port 22 and not 2333.

On the device, execute the following:

if [ ! -f /tuya/ ]; then cp /tuya/ /tuya/; fi
echo "#!/bin/sh" >/tuya/

If you're happy that everything worked, reboot and your device is now controllable by Home Assistant on port 8888.

Using Home Assistant's ZHA to integrate the device.

1) Create a new integreation of "Zigbee Home Automation"

2) Select enter manually for the port

3) Pick the EZSP radio type

4) Enter the ip address of your device in this format socket://ip.address:8888