Skip to content

Instantly share code, notes, and snippets.

@initialed85
Last active March 31, 2022 01:20
Show Gist options
  • Save initialed85/d2ada90f29b188637022e23caaf09dc2 to your computer and use it in GitHub Desktop.
Save initialed85/d2ada90f29b188637022e23caaf09dc2 to your computer and use it in GitHub Desktop.
Flashing Kogan (AU) smart devices w/ Tasmota using tuya-convert

Flashing Kogan smart devices w/ Tasmota using tuya-convert

I bought the following devices from Kogan (AU):

  • KASB10WRGBCCTB22A Kogan SmarterHome 10W RGB+CCT Color & Warm/Cool White Smart Bulb (B22)
  • KALEPDLRGBCCTA Kogan SmarterHome Smart LED Downlight
  • KASB10WRGBCCTE27A Kogan SmarterHome 10W RGB+CCT Color & Warm/Cool White Smart Bulb (E27)
  • KASPEMHUSBA Kogan Smart Plug With Energy Meter (and 2 x USB)
    • NOTE: Same device as MS6104 Jaycar Smart Plug WiFi Controlled Main Switch and Energy Monitor with 2 x USB Sockets

I was able to flash them with Tasmota using tuya-convert

Prerequisites

Here's what I used:

  • Raspberry Pi 3
    • connected to my network via Ethernet (because the WiFi gets used to flash the smart device)
    • git installed
  • A first laptop to SSH into the Raspberry Pi 3
  • A second laptop to connect to the smart device post-flash for it's initial configuration
    • You could probably use the first one, but it's fiddly (gotta change the network you're connected to, break the SSH session etc)

Flashing

Here are the steps I took for each device:

  • put the device into pairing mode
    • for the KASB10WRGBCCTB22A and the KALEPDLRGBCCTA:
      • on, off, on, off, on- it'll go through a blink pattern to show it's going into pairing mode
  • on the Raspberry Pi 3 (SSH'd in via the first laptop)
    • git clone https://github.com/ct-Open-Source/tuya-convert.git
    • cd tuya-convert
    • sudo ./install_prereq.sh
    • sudo systemctl disable mosquitto.service && sudo systemctl stop mosquitto.service
      • this is because install_prereq.sh installed mosquitto but the flash script doesn't like it already running
    • sudo ./start_flash.sh
      • connect the second laptop to the "vtrust-flash" SSID as suggested
      • follow the prompts and select the "tasmota" firmware file when prompted

Configuration

Here are the steps I took after flashing for each device:

  • on the second laptop
    • connect to "tasmota-xxxx" WiFi SSID that appears
    • a captive portal will open - if not, navigate to http://192.168.4.1
    • configure the WiFi settings for the device
  • on the first laptop
    • for the KASB10WRGBCCTB22A I used this template because this one didn't seem to work
      • NOTE: it's not perfect, I think I'm only getting RGB (I've tried a few other brand RGB+CCT templates and the behaviour is closer to what I'd expect, but the colour warmth setting seems to adjust both warmth and light level)
    • for the KALEPDLRGBCCTA I used this template which is the expected one
    • for the KASPEMHUSBA I used this template
@branleur
Copy link

That's actually a misspelling of WB2s. There's an experimental firmware available for those.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment