-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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 SONOFF Smart Power Meter Switch | POW Elite #15856
Comments
I have one on order. Will see what's possible. |
I received my POW elite yesterday and tried to run my own Platformio code on it. The used hardware is the following:
As usually the button is connected to GPIO00 to enable the flash mode. It is possible to flash a basic program but it is not starting correctly. I based the first test program on the OTA example (https://github.com/espressif/arduino-esp32/blob/master/libraries/ArduinoOTA/examples/BasicOTA/BasicOTA.ino). In Platformio i used board = esp32dev as the base. |
Did you try just flashing the standard Tasmota build? If that works...... |
Hmm, good Idea. I started with my own firmware to play with the IOs and the LCD. Update: Great, this works. Maybe my build environment is broken. |
GPIO00 = Button1 Also DO NOT CONNECT SERIAL WHILE AC IS CONNECTED. Just blew my Earth Leakage Circuit Breaker. No visible damage. Pfew. How could I forget... Current template for POWR316D is:
|
Lcd driver datasheet |
Some driver code found here: https://github.com/emsyscode/TM1621
|
I found the HT1621 which looks very similar to me. |
TH Elite seems to have the same base as POW Elite (by the looks at least). Would be nice to get support for it as well. I have few of them here + DS18B20, THS01 sensors. I can share info if needed, willing to help any way I can. |
Looks like support for both is in the works. |
@arendst Are you sure with the 320D pins? My config is currently the following: Does the 316D not have a bistable relay? |
Not sure about gpio15. As you noticed it's gpio4 it might well be ok. My 316D has no bistable relay and is controlled by gpio13. In the meantime I managed to logic analyse the sonoff lcd init sequence and 5 second display update sequence (on the thr316d to stay away from AC voltage). Currently need to find out which bit controls which part of the lcd. Init sequence is clear. The ht1621 docs are indeed equal to my google translated tm1621 docs. |
Hello, The IO that I configured are :
|
@Philippe12 big thanks, I've managed to get everything working with this config, but the temperature sensor. Have you managed to use the temperature sensor there? |
Add initial Sonoff POWR3xxD display support (#15856)
By adding define Using these templates:
That's it for today (00:11) |
@Nuffic THR sensor (Sonoff Si7021) is a dificulty, it use the same protocole one wire than DHT11 but not with the same timming. You can find mi first modification at : Philippe12@0d9f674 I know all this modifications are dirty that it for test, but if can help you. |
hey @Philippe12 thanks for your modification i´m testing it right now ;-) could you please post your template? |
{"NAME":"THR316D","GPIO":[32,3200,0,3232,225,9280,0,0,0,8224,0,544,3872,9184,9216,0,0,224,0,9248,0,1248,0,3840,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1} I add TM1621 pin |
@Philippe12 thanks for all the info. We even got the DS18b20 working with it. |
so for now the THR320D shows no Temp/Hum on the Display (Tasmota Interface is correct) instead it shows Watt, kWH like the POW try to figure out what to change... |
Try latest dev. |
@arendst it does show some temps but some weird ones ;-) and the Tasmota Interface shows no Temp/Hum at all. See Pic. |
This is expected. The SI7021 driver is not available on the ESP32 (yet). The @Philippe12 patched version is not stable either considering the The display driver selects the current global-temp for being displayed. As the SI7021 is invalid it displays the ESP32 temp. To remove the ESP32 from being fed to global-temp you can either remove the ESP32 temp with command Also when no valid humidity is read it won't show anything on the LCD. Using command |
Also interessted in the WTS01 solution. Is it a work in progress, or is the solution to cut the "bulge"? |
From #19373 one could conclude it doesn't work I ordered some WTS01 and have a look myself and let you know. |
Hi, on my POWR320D I checked the PCB - FYI the Pin of GPIO15 looks 'not connected' monostabile relay. Why I spend time to look for NC pins ? I want to connect an additional DS18B20 sensor (not forseen in the POW Elite). Can you support me i.e if I connect one (or two) DS18B20 to GPIO19 (or GPIO22) ? Br |
Tasmota supports multiple DS18B20 on the same wires, no need for additional gpios. But yes, if you use the web UI instead of looking at the numbers in the template, you can see that the gpio config for |
Hi, clear - it's onewire. But the original POWR320D has not only one onewire device and so also not a given GPIO. But I will flash tasmota and check what I can do in the web interface. thank you |
Golden rule. If you want to add things not originally supported don't use a template. Choose the generic device and put in the GPIO manually as Blakadder's page. People forget that the template is there and try to change things and not realise why it doesn't work.
…________________________________
From: Elekronixx ***@***.***>
Sent: 21 March 2024 09:38
To: arendst/Tasmota ***@***.***>
Cc: pmknowles ***@***.***>; Mention ***@***.***>
Subject: Re: [arendst/Tasmota] Support for SONOFF Smart Power Meter Switch | POW Elite (Issue #15856)
Hi, clear - it's onewire. But the original POWR320D has not only one onewire device and so also not a given GPIO. But I will flash tasmota and check what I can do in the web interface. thank you
—
Reply to this email directly, view it on GitHub<#15856 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AI5KPM2AAD2D7WRAD2K4LGLYZKTB3AVCNFSM5ZVP735KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBRGE3TKNBQGAZQ>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
No reason to put in the gpios manually, just start from the existing template, you can change pins and name in the web interface, and save it. "Configure Template" instead of "Configure Module". |
And there are loads of people who have come on here saying I did x and it didn't work. A few emails later we find that they had a template applied (or not) and were making the changes in the wrong place... It only takes a few minutes to enter the 10 or so parameters and you know it will work.
…________________________________
From: sfromis ***@***.***>
Sent: 21 March 2024 09:49
To: arendst/Tasmota ***@***.***>
Cc: pmknowles ***@***.***>; Mention ***@***.***>
Subject: Re: [arendst/Tasmota] Support for SONOFF Smart Power Meter Switch | POW Elite (Issue #15856)
No reason to put in the gpios manually, just start from the existing template, you can change pins and name in the web interface, and save it. "Configure Template" instead of "Configure Module".
—
Reply to this email directly, view it on GitHub<#15856 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AI5KPM6ID35KNNTLLKVC45DYZKUIZAVCNFSM5ZVP735KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBRGE3TONBSGMZA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
OK, I got it running via AutoConf and Sonoff POWR316D (LEDs, Display, Relay on/OFF). Then I configure on base of the AutoConf before the pin GPIO19 as DS18x20 1 and rename the config to 'Sonoff POWR316D+DS18B20'. Then I remove the AutoConf and reboot (230V Power Cycle) - i still have the display and the GPIO configured. But I estimate to get also a temperature on the Webpage ?! gpio all gives me "GPIO19":{"1312":"DS18x201"}
Clear, that I at first have soldered the 4,7k to3.3V and connect the DS18B20 ! :-) |
Yes. I cannot get the WTS01 to work reliably. So final fix is remove the bulge and configure as DS18x20 |
Hello, I have installed tasmota32-fatory.bin from the GitHub tasiota install page. Flash was successful but it doesn't work on the POW Elite device, no Wifi network and I have this message that continuously repeat. Any idea ?
|
Yes. Start reading this threat from the beginning and find a solution to your problem. |
this one was also needed : #19979 (comment) |
If you're getting nothing at all it's generally a wiring issue
…________________________________
From: PhillyGilly ***@***.***>
Sent: 04 April 2024 18:48
To: arendst/Tasmota ***@***.***>
Cc: pmknowles ***@***.***>; Mention ***@***.***>
Subject: Re: [arendst/Tasmota] Support for SONOFF Smart Power Meter Switch | POW Elite (Issue #15856)
I have two THR316D devices and one SI7021 sensor and one DS18x20 sensor.
I flashed both with v13.4 tasmota.factory32.bin. I can configure both to work with the SI7021 sensor and after applying the DhtDelay 500,40 they work reliably.
image.png (view on web)<https://github.com/arendst/Tasmota/assets/56273663/0404318e-7e43-4f6a-a068-0ee4fd796687>
However I cannot get either to work with the DS sensor. I select the correct device to GPIO25:
image.png (view on web)<https://github.com/arendst/Tasmota/assets/56273663/9edc7aa2-0c72-48f9-a4d2-cd0d1fab3e66>
But the display does not come on and nothing is showing in tasmota:
image.png (view on web)<https://github.com/arendst/Tasmota/assets/56273663/cdd5b7d1-9831-4dd0-b28f-f30ff444b50a>
Any ideas?
—
Reply to this email directly, view it on GitHub<#15856 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AI5KPM3ITVLGKLA36DFZ563Y3WG7BAVCNFSM5ZVP735KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBTG44DENRWHE2A>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@PhillyGilly how did you connect the sensor to the device? |
If I set GPIO25 to SI7021 but don't plug in the sensor it shows with null values. So why doesn't the THR316D show DS18x20 at the top of the page even with a null value? The temperature sensor is plugged in by its original RJ9 plug. On other Tasmota devices you can set it up and then plug in the sensor. So why not here? |
Because they are different types of devices the DS is 1-wire the SI is IC2. They work in totally different ways.
…________________________________
From: PhillyGilly ***@***.***>
Sent: 04 April 2024 20:43
To: arendst/Tasmota ***@***.***>
Cc: pmknowles ***@***.***>; Mention ***@***.***>
Subject: Re: [arendst/Tasmota] Support for SONOFF Smart Power Meter Switch | POW Elite (Issue #15856)
If you're getting nothing at all it's generally a wiring issue
________________________________
From: PhillyGilly @.>
Sent: 04 April 2024 18:48
To: arendst/Tasmota @.>
Cc: pmknowles @.>; Mention @.>
Subject: Re: [arendst/Tasmota] Support for SONOFF Smart Power Meter Switch | POW Elite (Issue #15856<#15856>)
I have two THR316D devices and one SI7021 sensor and one DS18x20 sensor.
I flashed both with v13.4 tasmota.factory32.bin. I can configure both to work with the SI7021 sensor and after applying the DhtDelay 500,40 they work reliably.
image.png (view on web)https://github.com/arendst/Tasmota/assets/56273663/0404318e-7e43-4f6a-a068-0ee4fd796687
However I cannot get either to work with the DS sensor. I select the correct device to GPIO25:
image.png (view on web)https://github.com/arendst/Tasmota/assets/56273663/9edc7aa2-0c72-48f9-a4d2-cd0d1fab3e66
But the display does not come on and nothing is showing in tasmota:
image.png (view on web)https://github.com/arendst/Tasmota/assets/56273663/cdd5b7d1-9831-4dd0-b28f-f30ff444b50a
Any ideas?
—
Reply to this email directly, view it on GitHub#15856 (comment)<#15856 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI5KPM3ITVLGKLA36DFZ563Y3WG7BAVCNFSM5ZVP735KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBTG44DENRWHE2A.
You are receiving this because you were mentioned.Message ID: @.***>
If I set GPIO25 to SI7021 but don't plug in the sensor it shows with null values. So why doesn't the THR316D show DS18x20 at the top of the page even with a null value? The temperature sensor is plugged in by its original RJ9 plug. On other Tasmota devices you can set it up and then plug in the sensor. So why not here?
—
Reply to this email directly, view it on GitHub<#15856 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AI5KPM74OMHMB6AEEB6T5JTY3WUODAVCNFSM5ZVP735KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBTHAYDONJSGE2A>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
There is nothing plugged in (although it makes no difference) but when I set GPIO25 to DS18x20 like this This makes me think that there may be a problem in using DS18x20 relating to the discussion above comment |
It is quite normal that the DS18x20 driver will not give anything on the front page, or in JSON, unless the sensor is detected. With |
did you look into this?: new DS18x20 "with bulge" will not work as they come. You need to cut the bulge first and connect manually... |
In that case, the supplied device is WTS01, not DS18B20, even if the device incorporates a DS18B20 plus a MCU to bridge to a different protocol. |
Remarkably I didn't see the "bulge" inside my neatly coiled sensor. Great thank you. |
I'd not expect people to make new code for just one random relay device, when there are general projects working for lots of similar device. |
Is it upgradeable THR316D via OTA Tasmota 12.5.0.4 to newest? And how is final version of template? :D |
Hi @arendst , in the #19373 I've put a driver coded in Berry console that seem to work with the WTS01. It lacks of update web page, as I'm newbie to Berry and driver development. But I suppose that with the information I've published it could be implemented the driver directly in the Tasmota code for a next firmware revision. It save us to cut the cable of the WTS01... ;) |
Your drivers works perfectly and I'm not sure if I should rewrite it in C and hardcode it. This is a perfect example of berry extending Tasmota!!! |
An idea for extra GPIO pins on THR3XXD. @Longlife4ever Here's a question/idea: THR316 and THR320 appear to be identical except for the main relay; presumably the PCB is common, with all the same traces. On the blakadder template site, I see that the THR316 uses GPIO21 for the (monostable) 16A relay; THR3320 uses GPIO19 & GPIO22 for the (bi-stable) 20A relay. Wouldn't it be relatively easy to access the unused solder pads near the non-populated relay in each case? e.g. on the THR316, the unused solder pads for GPIO19 + GPIO22 in the exposed space where the 20A relay would go? I ask because this may represent simpler, easier soldering for those who aren't willing/capable to attempt to access SMD solder pads in the relatively crowded area for GPIO26. If this makes sense, it shouldn't be too hard to reverse-engineer to determine where the GPIO pins terminate near the relay. Comments, suggestions, feedback are solicited & welcome. Thanks. |
If you want to suggest an idea, you should not really ask about ease of access to such pads, but have an answer about whether it would be feasible. I'd not really expect holes for "the other" relay type (significant size difference) to be connected directly to the ESP32, as it looks like 5V relays, where the ESP32 only produces 3.3V signals. However, I've not poked around on the board.... If you're fine with SMD level soldering at the 3.3V end of that setup, that may be possible, but I thought that SMD level soldering was what you wanted to avoid 😁 |
PROBLEM DESCRIPTION
Is it possible to use Tasmota on the new SONOFF POW Elite?
I found some Pictures here.
It´s based on an ESP32 and the power measuring is done with a CSE7759B (same as used in SONOFF POW R2).
But what´s about the LCD driver?
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
Backlog Template; Module; GPIO 255
:TO REPRODUCE
Steps to reproduce the behavior:
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: