Gosund P1 power strip with power monitoring

Hi,

I flashed power strip Gosund P1 with Tuya Convert. I am using ESPHome but as I do not find for this model have pin mapping, I decided to flash Tasmota for investigation.
I found relays, leds and even CF1 for current/voltage metering. But I am unable to find CF and SEL for power metering using standard procedure (this procedure do not describe finding power meter pins).
I do not also found pins for switches (not necessary unless I turn it on/off remotely)

  1. Is there any procedure to find this CF, SEL pins or just blind testing all possibilities?
  2. Is it worth to look for it on pins 9, 10? (I find it is ESP8285 unit.)
  3. Is It possible that power metering chip was damaged during searching for that pins?
1 Like

Is it compatible with this?

GPIO # Component
GPIO00 None
GPIO01 Led1i
GPIO02 None
GPIO03 Button1
GPIO04 BL0937 CF
GPIO05 HLWBL CF1
GPIO09 None
GPIO10 None
GPIO12 HLWBL SELi
GPIO13 Led2i
GPIO14 Relay1
GPIO15 None
GPIO16 None
FLAG None

No. It is power strip P1 not plug SP1.

image

And already found pins (relays, led’s, switch) do not match.

Damn. Was worth a try.

I have it done but still with missing buttons. I will share link to template but still waiting for publiish it.

Did you resolve this? I am interested in buying one myself.
Does the Power Metering work on individual sockets or on whole unit?

I saw that there is now a template for it on Blakadder:

Yes, resolved. Power metering is for the whole strip. I do not know any unit with more than one metering.

1 Like

Thanks for the quick response. Then I know I need in my case individual plugs.

Can you share your esphome config for this device?

3 Likes

did you already publish it somewhere? I am at the beginning of doing the P1, too. Would help me a lot!

1 Like

I went through the process this week:

  • used the TUYA-CONVERT script ( https://github.com/ct-Open-Source/tuya-convert ) to flash the Tasmota firmware
  • just followed the step by step instructions
  • used a Raspberry Pi 3B+ & Raspberry Pi OS & its internal Wifi chip
  • used the tasmota.bin firmware & Blakadder template configuration
  • you need to have an MQTT broker
  • installed then the Tasmota integration in HA

Smooth process. All working well.

Why? I have without MQTT

Using the Tasmota firmware?

ESPHome. Tasmota have to use MQTT?

Yes.
Here you can find a good comparison Tasmota vs. ESPHome:
ESPHome vs Tasmota (And How To Switch Between Them) | Siytek
One of the main differences is that Tasmota needs MQTT as communication method.

Oh, really nice article about both platforms. Thanks.

For some reason I am unable to get the P1 to show in my Home Assistant… I have another 23 devices working well in MQTT, I see in the supervisor logs that it has connected, I can listen to the topics and see the information flowing in, but it is not detected as a device…

I cannot list the device anywhere… Do I need to create manual sensors??

1610703391: New connection from 192.168.1.10 on port 1883.
1610703391: New client connected from 192.168.1.10 as DVES_XXXX (p2, c1, k30, u’pi’).

{
“Time”: “2021-01-15T10:43:11”,
“ANALOG”: {
“A0”: 1024
},
“ENERGY”: {
“TotalStartTime”: “2021-01-15T09:12:32”,
“Total”: 0.001,
“Yesterday”: 0,
“Today”: 0.001,
“Period”: 0,
“Power”: 0,
“ApparentPower”: 0,
“ReactivePower”: 0,
“Factor”: 0,
“Voltage”: 230,
“Current”: 0
}
}
QoS: 0 - Retain: false

I flashed it with ESPhome and it works like a charm!

i will upload to https://www.esphome-devices.com/ in a few days…

Edit: be careful. I have ditched this device long time ago due to sudden power breakups

2 Likes

I will check that next, I have it loaded with tasmota, and it fully works, I am only missing the last step which is MQTT adding to to the device database…

EDIT: I fixed it. Updated to tasmota 9.2.0 and used the Tasmota (Beta) integration. All shows up.

Thanks to the message of Massimiliano.

1 Like

Hi,
would you Share your Config for ESPHome with Gosund P1 ?
Thanks