-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Homecube/Gosund SP1 #2223
Comments
Is nobody interested in suppprting this very common large familiy of SP1 devices (from many different brands like: Gosund, Coosa, Homecube ...). |
Hey it would be great if someone could add the device. There exists a lot of this devices with different names on Amazon for example. |
Espurna now supports these plugs including power monitoring. |
Did you try Tasmota selecting module 06 Sonoff Pow already? |
After troubling ordering the correct energy monitoring device with Amazon I'll see if Tasmota will work with it. As far as I can tell this has NO energy monitoring: The below link has energy monitoring: I ordered the second one. |
Yes I tried the pow module. I´m not 100 % sure how it worked. As I can remember I think the relay doesn´t worked when you switch on and off. The led also hasn´t worked with the pow configuration, and the energy monitor displays wrong values. Ok yes I think all the different brands with the same factor of the sockets have the same hardware inside. If it is mentioned in the description, then they have a energy monitor too. |
I opened the SP1 thread in espurna and tasmota and the espurna team solved it first with some contribution from my side (see also the pin layout at the beginning of the post). |
@arendst I would be surprised if the Ablue has no energy monitoring. I assume it's the same SP1 based product as used by: Gosund, Homecube, Coosa, Blitzwolf and many others companies (mostly the same product). If you open it and it has a HJL-01, it has energy monitoring |
Yes, I think all of these low cost china plugs are utilizing this HJL01/BL0937. |
I was surprised when I ordered one with energy monitoring and found out that it was identical to two that I already had. Turns out, all three can do energy monitoring, although I am pretty sure that this feature was not advertised when I bought the first two. So, this was a pleasant surprise! So I can confirm that these can do energy monitoring: |
@arendst: The Ablue has energy monitoring, but it's quite well hidden further down in the description: "Senken Sie Ihre Rechnungen mit Energieüberwachung / Sie wissen genau, wie viel Strom jedes Gerät verwendet und wie effektiv Geräte verwaltet werden." It seems like they don't see it as an important feature, but for me it is indeed a major selling point. Especially at this price there really is no reason to buy one without energy monitoring any more. |
@arendst, @nightfly0815 as I wrote there are many (10+) companies selling it under different names but it is always a SP1 with HJL01 and energy monitoring. |
Working on implementation... |
Awesome, thank you! |
@arendst I'm impressed. You enabled a lot of device families with switch and energy monitoring. Probably not less than with support of the Sonoff devices. |
Add support for BlitzWolf BW-SHP2 (and Homecube, Gosund SP1) Energy Monitoring Smart Socket (#2223)
Hey nice to hear. I have a Ablue SP1 Socket. Thank you for the hard work! :-) |
Try to use WPS. Worked for me. |
I will try it, when I´m at home. But without any led notification it will be hard to find out how the device worked and in witch modus the device is. On witch GPIO is the standard led configured who shows the status of the device? Is it the GPIO 13? Maybe I can try to connect an extra led to the GPIO to indicate the status of the device. |
Just enable WPS on your router and power up SP1. Should find an IP-Adress and you should find the sonoff-xxxx device in the listof devices. |
Yes the WPS had worked!! It looks like that there is a wifi bug with tasmota and the socked. |
@schrej-zz and @nightfly0815 WPS shall not be required as the SP1 will provide it's own hotspot when it can't connect to a another WiFi AP. It will offer a hotspot with 192.168.4.1. At least All 7 devices I have used (with espurna so far) behave that way and tasmota should have the same behavior. |
@knopserl yes I know, all my other devices worked and open a wifi AP if the lost the normal wifi connection. This is why I asked that I don´t know this behavior that I can´t find the sonoff wifi from the socked. |
Tasmota default is WPS. Using the button as described in the wiki should make wifimanager available. No visible feedback though. |
Hi, Request timed out. this socket is just few feet away from my Ubiquity AP Pro so signal quality should not be an issue. I used the source code and set my ip and ssid in user_config.h compiled in Arduino IDE and flash with esptool. Should I change the CFG_HOLDER value and recompile? Anything specific I should look into ? Thanks ! |
I think you haven't searched for comparable issues. |
Hello, is it possible under firmware 6.1.1 to integrate the HJL01 / BL0937 chip also under generic module? I can not find the chip in the selection. |
@crassus12: As far as I understand, it's only possible to use "user gpios" - the GPIO_HLW_CF & GPIO_HLW_CF1 & GPIO_HLW_SEL are "ProgramSelectablePins" - not chooseable in the dropdown at all. Before I struggle with that myself, here are my questions: |
b - look for the correct SetOption command in the wiki. |
That was easy, BIG THANKS! SetOption21 was "OFF", but should be 1/on by default? |
Add support for BlitzWolf BW-SHP2 (and Homecube, Gosund SP1) Energy Monitoring Smart Socket (arendst#2223)
I flashed a Homecube SP1 with Tasmota (using VC and PlatformIO) but after flashing the led just blinks once when I plug it into a socket and nothing else happens.
Any ideas? |
I guess the button doesn't work in Tasmota, so you can't switch between different configuration modes. I tried it with a Gosund SP1, which is probably identical to yours. Eventually I flashed espurna. |
If you don't get it to work, I would also try ESPurna. we worked together to get all SP1 families running. It definitly works with Homecube, Gosund, Ablue, Coosa, Blitzwolf (I have tested it with all of them) |
Tasmota works with Gosund SP1 (and Wuudi). I have 2 of each running successfully incl. energy monitoring with Tasmota 6.1.1 |
gosund SP1 uses a different GPIO (not the GPIO0 like sonoff devices), therefore you have to use a bridge on GPIO0 to GND to choose a wifi configuration mode, if you are unhappy with the default - which now is the WiFi-Manager beginning with 6.2.x. |
Hmmm, I had all devices open and they have all the same SP1 HW with the same ESP8266 board and same PCB,. I can't remember that different GPIO's for relay, button, LED's and energy monitor are used. But at least all work fine. |
I added WiFi config the the user_config.sh script, so it should just start up and use those settings. |
you have to connect GPIO0 to ground to get into the flash mode and restart. The red LED will then be on. |
OMG, never do anything inside when connected to a power socket, if you love your life. What I meant: |
I didn't. But your comment suggests that to choose the config mode. |
Got it working. Removed the WiFi info from user_config.sh and just let it run a while after flashing/resetting and an ad-hock sonof WiFi network showed up. |
Thanks for all the explanations! I had tried to use a version prior to 6.2. Nice to hear that current versions behave differently. |
Of course there is. I used my CP2303 based USB adapter to flash and for configuration. Serial monitor is active for about 5 minutes. |
I currently have 4 GoSund Smart Socket SP1 units, the ones from https://www.amazon.de/gp/product/B07B911Y6V/ and just wondering if firmware flash is possible without the app contacting the cloud or breaking it open? "Firmware is the latest version and the app is Tuya Inc.'s Smart Life - Smart Living, which seems mostly open source. |
No need to break them. You need a special tool to open the screws, that's it. |
The Gosund SP1, also offered from other companies like Homecube etc. ist a very small, cost effectiv WiFI smart plug + Energy monitor. Most plugs only habe switch features or a much more expensive.
It would be extremly attractive to get a support this smart plug SP1 as it would cover many similar brands which use the same base products/design.
I have bought two of them in a bundle for 39€ and the have an ESP8266EX with 1MB Flash and an Energy Monitor chip which is labeled with: HJL-01 J1749CYH D797480E.
I was able to solder the 3,3V and the RX/TX connection and read the chip type and flash size and dump the flash, but don't know what kind of energy monitor chip that is (have not found it in the web).
If anybody could hack that device and get Tasmota working, that would be great.
That are the links to the product:
https://www.amazon.de/Intelligente-Stromverbrauch-Fernsteurung-Schaltbare-Energieklasse/dp/B076WZQS4S/ref=sr_1_1?s=diy&ie=UTF8&qid=1521671822&sr=1-1&keywords=gosund+SP1
https://www.amazon.de/Steckdose-Homecube-intelligente-Verbrauchsanzeige-funktioniert/dp/B076Q2LKHG/ref=sr_1_fkmr0_1?s=diy&ie=UTF8&qid=1521672069&sr=1-1-fkmr0&keywords=homecube+SP1
The text was updated successfully, but these errors were encountered: