Australia - Electrically Certified Hardware

Try

sudo systemctl stop systemd-resolved

Before starting tuya-convert. It looks like tuya-convert is trying to start up it’s own DNS server (port 53) to send the update requests to tuyaconvert rather than the proper servers. But because Ubuntu want to have their own local DNS server, it doesn’t work. You then get errors about lookups, but for running tuya-convert this is in fine. Once you are are done, you can restart it by changing stop to start above. I have had to do this with V1 and V2.

Have you tried to swap Rx & Tx just in case?

yep tried that. multiple times :confused:

I’ll give the DNS thing a go. I’m honestly considering getting a pi for the conversions… can’t tell if it’s me or these devices
I got one going no issues on the arlec grid convert though. the other one is in pieces as I thought maybe I’d try de-soldering it to flash it

These might be of interest

I like the look of these. I’ve been searching for a consistent look across lights, fans, and outlets. And, it has energy monitoring at the switch.
Thanks for the link.

1 Like

I just saw these GridConnect smart ceiling fans at Bunnings (in Dural NSW) last weekend. Has anyone perhaps bought one and flashed Tasmota/ESPHome and could share the experience and configuration?

2 Likes

I’m willing to brick an item up to $50, beyond that either I won’t flash it or not buy it unless proven to work with new firmware

Apologies for the delay in posting config, in fact someone beat me to the Tasmota template;

 {"NAME":"KoganPOW","GPIO":[0,0,0,17,134,132,0,0,131,56,21,0,0],"FLAG":0,"BASE":52}

Adapted it to ESPHome using this config;

substitutions:
  plug_name: kogan_pow2_1234

  # Higher value gives lower watt readout
  current_res: "0.00087"

  # Lower value gives lower voltage readout
  voltage_div: "775"

esphome:
  name: ${plug_name}
  platform: ESP8266
  board: esp8285

wifi:
  ssid: 'WiFi'
  password: 'Password'

  ap:
    ssid: "${plug_name} Hotspot"
    password: "Password"

captive_portal:

logger:

api:
  password: "Password"

ota:
  password: "Password"

web_server:
  port: 80

time:
  - platform: homeassistant
    id: homeassistant_time
    
binary_sensor:
  - platform: status
    name: "${plug_name}"

  - platform: gpio
    pin:
      number: 03
      mode: INPUT_PULLUP
      inverted: True
    name: "${plug_name}_button"
    on_press:
      - switch.toggle: relay

switch:
- platform: gpio
  name: "${plug_name}_Relay"
  pin: GPIO14
  restore_mode: ALWAYS_OFF
  id: relay

  on_turn_on:
    - switch.turn_on: led

  on_turn_off:
    - switch.turn_off: led

- platform: gpio
  name: "${plug_name}_LED"
  id: led
  pin: GPIO13
  inverted: True

sensor:
  - platform: hlw8012
    sel_pin:
      number: GPIO12
      inverted: True
    cf_pin: GPIO04
    cf1_pin: GPIO05
    current_resistor: ${current_res}
    voltage_divider: ${voltage_div}
    current:
      name: "${plug_name}_Amperage"
      unit_of_measurement: A
    voltage:
      name: "${plug_name}_Voltage"
      unit_of_measurement: V
    power:
      name: "${plug_name}_Wattage"
      unit_of_measurement: W
      id: "${plug_name}_Wattage"
    change_mode_every: 8
    update_interval: 10s
  - platform: total_daily_energy
    name: "${plug_name}_Total Daily Energy"
    power_id: "${plug_name}_Wattage"
    filters:
        # Multiplication factor from W to kW is 0.001
        - multiply: 0.001
    unit_of_measurement: kWh
      
# Extra sensor to keep track of plug uptime
  - platform: uptime
    name: "${plug_name}_Uptime"
1 Like

It’s from Bunnings, brick it and return it. “it’s faulty”.

7 Likes

How do i submit an issue for Tuya-convert 2 (which i believe is made by M4dmartig4n
On the other Tuya Convert by Arendst i can see an issues page, on m4dmartig4n i can’t see one

Edit: Sorry, I didn’t read that properly the first time on my phone. I thought you were asking where to submit a code. Apologies.

The official tuya-convert repository is here: https://github.com/ct-Open-Source/tuya-convert
This covers version 2.x.

My plugs arrived today, so I will flash them tonight. I’m sure @sparkydave will be happy to see the ESPhome code though :face_vomiting:

Thanks for being the test dummy.

1 Like

Kogan now have proper CCT RGB lights available, $69 for a 4 pack.

1 Like

I picked one of these (iDigital Smart Home Wifi Globe [RGB Colour + Warm White]) up from the Reject Shop tonight… successfully flashed with Tasmota using Tuya-Convert. However, struggling to figure put the right template (or even figure out if this is RGB, RGB_Color temp, or RGBW). A few templates (RGB + color temp) have kinda worked, but not fully.

Alone have tips on what this likely is (or how to figure out a template for it?)?

Thanks!

I assume you have watched some digilur, but he is often talking about templates and bulbs.

Might even worth trying a lohas template. have you done the relay test bit yet? kinda worked, but not fully isn’t very descriptive… is it changing colours but in the wrong direction or what?

have you tried this one actually
https://blakadder.github.io/templates/brilliant_20699.html

I have tried the 20699 template from the Tasmota database–even the toggle didn’t work (same as the Kogan RGB). I’ve been working though a list of possibles (some work-ish) to try to figure it out. Will take a look at digilur shortly…Thanks!

After trying a bunch of existing templates, I expect mine is somewhere in between a few. The most successful ones so far have been:

This one:
{"NAME":"TCP Smart RGBW","GPIO":[0,0,0,0,140,37,0,0,38,142,141,0,0],"FLAG":0,"BASE":18}
gives me:

  • Working toggle
  • Working brightness
  • Working colour temperature (I think—goes from whiteish-yellow to orange)
  • Colour slider and saturation (?) slider just make the light flick on and off

This one:
{"NAME":"Brilliant RGB+","GPIO":[0,0,0,0,37,40,0,0,38,0,39,0,0],"FLAG":0,"BASE":18}
gives me:

  • Working toggle
  • Working brightness
  • No color temperature slider
  • Colour slider changes colours between pink/purple/blue/red (unless saturation slider is “palest”, in which case this slider does nothing)
  • Saturation (?) slider (pale–>dark) changes colour from pale purple --> medium blue (varies a little depending on colour slider position)

This one (only the FLAG value is different to above) seems to the same results:
{"NAME":"GenioBulbRGB","GPIO":[0,0,0,0,37,40,0,0,38,0,39,0,0],"FLAG":1,"BASE":18}

This one:
{"NAME":"Solimo RGBWW 9","GPIO":[0,0,0,0,37,40,0,0,38,41,39,0,0],"FLAG":0,"BASE":18}
gives me:

  • Working toggle
  • Working brightness
  • Colour temperature slides seems to just mimic the brightness slider in reverse
  • Colour slider does nothing
  • Saturation slider varies colour between blue and purple

None that I tried gave me green at any point, and I only got yellow when there was a “colour temp” slider. Using it always switched the colour to yellow.

Any suggestions?

I think i have it solved… I worked though the relay method (here), with info from this table for a 4-channel system.

Seems like its pretty straightforward PWM-controlled bulb with:

  • warm white (PWM4 (40)) on GPIO5
  • red (PWM1 (37)) on GPIO12
  • blue (PWM3 (39)) on GPIO14
  • green (PWM2 (38)) on GPIO15

I’m try to get a template up on Tasmota.

2 Likes

I havent, but others may have