Skip to content

Instantly share code, notes, and snippets.

@initialed85
Last active March 31, 2022 01:20
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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
@adub08
Copy link

adub08 commented Dec 13, 2021

Hi. Have you flashed any of these in recent months? According to the blog you linked to, the firmware is now encrpyed (like most tuya based devices). Just wanted to check before buying 4 of them 😅

@Jackywathy
Copy link

@adub08 very unlikely - just tried OTA with a set of 4 I received about a month ago, no luck. Will probably require manual flashing

@psyciknz
Copy link

If you take these apart for manual flashing, do you know what (and where) to look for to determine if the chip is esp, (or possibly somethign called a WB25 https://templates.blakadder.com/kogan-KASPEMHA.html).

I'd never manually flashed before, but did a sonoff zigbee bridge and sonoff sv in the weekend, so now feel like giving of these kogan devices a go.

@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