i think these questions are more esphome related, so maybe you can ask them in the related topic. if you cant figure it it out there i will look in to it it for you.
i wanted to post a response for a different reason…
My shp-6 actually bunt out, it was quite a show and a bit of a shock.
looking back and examining the burnt out circuit board, i think i put to much stress on it.
so extra recommendation to tuya flash or 3d printed flasher.
Although there is a slight change that my shp6 was faulty from the factory, no way to check. blame disassembly, i think
Oei,Watch out.
You dont want them to start a fire.
I have an 3d Printer so if anyone needs a Flasher. Please let me know.
I printed 4 of them already.
I relation to my problem I think may be the new version 0.100.3 changed a few things.
When I compile the configuration and upload the bin file to the plug. Still showing me that the plug is down. I`m still looking
For those who would like to use this with the tuya convert; I get the strong impression that these will not work with tuya-convert. The original plug tries downloading a firmware using a non-secure connection. These plugs try to use https, and that fails with tuya convert. I’ll try to see if I can use stunnel to get them to download a firmware, but If they do proper certificate checking, that won’t work. I’ll post my results here later.
A random certificate with a valid certificate from a private root will not work.
Off course the plug does not have an RTC, so cert based authentication will be a challenge. Therefore they seemed to have chosen to use pre shared key authentication.
The SHP6 tries to connect to a3.tuyaeu.com and sugests 2 cipher suites:
Only just received two SHP7, the double version of this. Won’t have time to poke the serial and stuff for a while, but uploaded some pictures if anyone wanna have a look under the hood before ordering these.
(No idea if ESPHome is possible or not at this time; looking closer the green module does say RL_ESP8285_Z0_V2.0 so I guess its just a matter of mapping pins one day I have the time:)
((or just pull the module, read the silkscreen, then probe the board another day https://ibb.co/album/jR0taa))
Done intitial pin mapping:
wifi module
IO1/TX IO3/RX
IO5 IO4
IO0 IO2
IO13 IO12
IO14 IO16
IOUT* GND
VDD
mapping
IO0 switch1 (next to wifi module)
IO13 led1
IO15 relay1
IO2 switch2
IO12 led2
IO16 relay2
IO01/TX blue led
IO03/RX** SEL HLW8012? pin 8
IO5** CF1 HLW8012? pin 7
IO4** CF HLW8012? pin 6
GND HLW8012? pin 5
VDD HLW8012? pin 1
*) no idea if correct, seems unused
**) untested
Hope to get it flashed soon:) Flashed, need to get buttons and power meter chip working. Button shows up in log once, but doesn’t do anything besides show up in log.
[22:32:30][D][binary_sensor:036]: 'button1': Sending state OFF
[22:32:33][D][binary_sensor:036]: 'button2': Sending state OFF
I just received a SHP-7 and a SHP-9 (and some more SHP-6’S) I can’t wait to get the ‘7’ flashed, I have to open the ‘9’ to see if it’s also esp based, I really hope so
It worked, it’s tasmotized now, so tomorrow I’m going to see if I can figure out the pins for it. It’s rather nice, 3 plugs, and two usb ports, and as I read it, they should be individually controllable.
Is there an ‘easy’ path for figuring out the pins?
I’ve made a very rudimentary template for shp9 now, and it’s uploaded to the repository.
It only handles the switches, LED and button, and I still have yet to figure out how to get powermonitoring active on this.
Unfortunately, the Voltage and Amperage stay 0?? The wattage is correct. Anyone an idea? Or is the latest SHP6 using a different chip? (BL0937 and is not supported?)
I like the idea of using the red led to show if there is power consumption above a certain threshold!
But does anyone know how to make a binary sensor out of that? Something that would have the value True if power => 10 W for instance, and False if < 10W.