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.
Thanks a lot ā¦ Now I know what to do next weekend
can i ask why esphome over just sticking with tasmota? what benefits ?
the API is just easier to integrate
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)
I just uploaded this to the Sonoff-Tasmota Template site; https://blakadder.github.io/templates/kogan_smarterhome.html
Is that the one with power monitoring or without?
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
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 Iām look into it
Details here for ESPHome;
you can see the details on the IC here;
champion!
Pleasure, glad my fiddling over the last few weekends is being so useful.
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.