Sonoff ZBBridge and Home Assistant Integration with TASMOTA

From KlavoWiki
Jump to navigationJump to search

NOTE: I have not tested this as yet. Waitong on eqipment to arrive.


Flash TASMOTA

Flash TASMOTA firmware as with any standard Sonoff device. Use the latest zbbridge firmware

Once flashing has been done make sure to continue with all cable disconnect and only power but USB-C cable.

Flash Zigbee Chip

The Sonoff ZBBridge has two chips. One for the ESP8266 chip where we flashed TASMOTA to. The other chip is for the Zigbee operation. You use the same upload button. I'm guessing TASMOTA knows the firmware we are upload is for the Zigbee chips as you can't specify which chip to upload to. I'm guessing the TASMOTA firmware upload tool looks at the header of the files and knows where to send the firmware.

Upload the latest Zigbee firmware. The latest version as of writing is ncp-uart-sw_6.7.8_115200.ota

Configuration

Open two browsers and access the console on each. One for monitoring status and the other for issuing commands.

template {"NAME":"ZHA ZBBridge","GPIO":[56,208,0,209,59,58,0,0,0,0,0,0,17],"FLAG":0,"BASE":18}
rule1  ON System#Boot do TCPStart 8888 endon
rule1 1
module 0

On reboot look for the following in the console during boot.

Starting TCP server on port 8888
stat/tasmoa_E3231E/RESULT = {"TCPstart":"Done"}

Home Assistant

Add Integration : Zingbee Home Ausomation

HA Zigbee Config

Integration:

  • Enter Manually
  • Radio : EZSP
  • Serial device path : socket://[zbbridge_ip]:8888
  • speed : 115200

Pairing

From TASMOTA console. (enables pairing for 60 seconds)

ZbPermitJoin 1