Integrate Kogan SmarterHome products into HA

Please provide some details on the tuya-convert as I was looking for the same.


Just follow the instructions, Used a spare raspberry pi for the WIFI part.

1 Like

Thanks a lot ā€¦ Now I know what to do next weekend :slight_smile:

can i ask why esphome over just sticking with tasmota? what benefits ?

the API is just easier to integrate

1 Like

has anyone tried the kogan smart plug with power monitoring ?
i have got it working via the Tuya app and HA
but the monitoring is not available.
Just wondering if the Tuya Conversion process , to tasmota would work?
because tasmota has power monitoring via MQTT built in

Iā€™ve just got a 4 pack of the Koganā€™s, thinking of doing just that so I can get energy monitoring.

Iā€™ve also got the 4 pack of Kogan smart plugs with power monitoring, used tuya-convert to flash Tasmota with no problems but havenā€™t yet worked out the GPIO settings to get it working.
So far I have GPIO14 set to Relay1 (21) and GPIO13 set to Led1i (56) and toggling the relay and the main LED appear to be working but no button yet.
Iā€™ve opened the unit and confirmed it has the Tuya TYWE3S WiFi module and HLW8012 power sensor doing power monitoring so Iā€™m thinking it will need a custom template to configure but havenā€™t managed to find anything online yet.

Iā€™m looking forward to see how you go with this. I just successfully flashed a couple of the Bunnings ā€˜Brilliant Smart Plugsā€™ with ESPhome but they donā€™t have power monitoring. I really like power monitoring for creating more sophisticated automations.

I went down this same path using Kogan branded Tuya smart plugs & flashing with Tasmota. I found that if you use the latest version of Tasmota (6.5.0) there are more options in the ā€˜Configuration Moduleā€™ drop-down. Went through a bunch of them and found that the Gosund SP1 module does the trick.

Everything appears to work great including all the power monitoring. Only thing that does not work is the button on the unit - nice to have but not a deal breaker for me.

I opened them up to flash - very easy to do & all the required connection points are labelled - (I just didnā€™t have all the necessary bits to do OTA flash)

1 Like

I just uploaded this to the Sonoff-Tasmota Template site; https://blakadder.github.io/templates/kogan_smarterhome.html

3 Likes

Is that the one with power monitoring or without?

1 Like

With Monitoring. I worked out what all the pins are so it seems to be working just great. Itā€™s a very basic module so you have to calibrate your self (otherwise known as a 60w bulbā€¦).

Edit: Itā€™s these guys - https://www.kogan.com/au/buy/kogan-smarterhome-smart-plug-with-energy-meter-pack-of-4-kogan/

nice! would you mind sharing the GPIO info etc? I was thinking of getting some but need that detail to use ESPhome, rather than using Tasmota

GPIO0 = Button1 (17)
GPIO4 = HLW8012 CF (133)
GPIO5 = HLWBL CF1 (132)
GPIO12 = HLWBL SELi (131)
GPIO13 = LED1i (56)
GPIO14 = Relay1 (21) - main relay, controls ring LED

Note that you will need to translate some of those onto esphome. However the GPIO13 is an inverted led (so off when onā€¦?) and of the esphome support the HLW 8012 power/wattage/current sensor that should be easy anough to work out (3 pins, CF, CF1 and a selector pin).

Edit2: The Sel pin in inverted tooā€¦ if you donā€™t do this you will end up with huge Watts and very small volts :smiley: :smiley:

1 Like

sorry for my lack of understanding hereā€¦ what do the HLW items represent? Iā€™m guessing these are relating to the power monitoring? but how?

EDIT: just saw your edit :smile: Iā€™m look into it

Details here for ESPHome;

you can see the details on the IC here;

champion! :grin:

1 Like

Pleasure, glad my fiddling over the last few weekends is being so useful.

1 Like

Nice work mate! I just dropped the template into a couple of my switches & now have the button working as well. Time to flash the rest of them.