Skip to content

Support for SONOFF Smart Power Meter Switch | POW Elite #15856

Closed

Description

@nobodyman1

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!

  • Read the Contributing Guide and Policy and the Code of Conduct
  • Searched the problem in issues
  • Searched the problem in discussions
  • Searched the problem in the docs
  • Searched the problem in the chat
  • Device used (e.g., Sonoff Basic): _____
  • Tasmota binary firmware version number used: _____
    • Pre-compiled
    • Self-compiled
  • Flashing tools used: _____
  • Provide the output of command: 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)

Activity

  1. self-assigned this
    on Jun 23, 2022
  2. arendst commented on Jun 23, 2022

    @arendst
    Owner

    I have one on order. Will see what's possible.

  3. Repository owner deleted a comment from Erling55 on Jun 29, 2022
  4. Repository owner deleted a comment from sfromis on Jun 29, 2022
  5. Repository owner deleted a comment from Erling55 on Jun 29, 2022
  6. dervomsee commented on Jul 1, 2022

    @dervomsee

    I received my POW elite yesterday and tried to run my own Platformio code on it.

    The used hardware is the following:

    • SOC: ESP32-D0WD-V3
    • Flash: BL2111 (Unknown, esptool flash_id identifies it as a 4MB chip)
    • Power Measurement: CSE7759B
    • LCD Controller: TM1621
    • Relay: FANHAR W15l-1A2T-L2, single coil latching

    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).
    It connects to the WIFI, but does not start properly and it is not possible to run a OTA update.

    In Platformio i used board = esp32dev as the base.
    Does anyone has a idea, what stops the program running on the ESP?

  7. sfromis commented on Jul 1, 2022

    @sfromis
    Contributor

    Did you try just flashing the standard Tasmota build? If that works......

  8. dervomsee commented on Jul 1, 2022

    @dervomsee

    Hmm, good Idea. I started with my own firmware to play with the IOs and the LCD.
    I will try the default image later..

    Update: Great, this works. Maybe my build environment is broken.
    Now Tasmota runs on my POWR320D
    ESP Chip Id 1124244 (ESP32-D0WD-V3 rev.3)
    Flash Chip Id 0x16405E
    Flash Size 4096 KB
    Program Flash Size 4096 KB
    Program Size 1397 KB
    Free Program Space 1482 KB
    Free Memory 159.0 KB (frag. 28%)

  9. arendst commented on Jul 2, 2022

    @arendst
    Owner

    GPIO00 = Button1
    GPIO02 = Relay1 (320D - bi-stable - Off)
    GPIO05 = LedLink_i
    GPIO13 = Relay1 (316D)
    GPIO14 = TM1621 DA
    GPIO15 = Relay1 (320D - bi-stable - On)
    GPIO16 = CSE7766 Rx
    GPIO18 = Led_i1
    GPIO25 = TM1621 CS
    GPIO26 = TM1621 RD
    GPIO27 = TM1621 WR

    Also DO NOT CONNECT SERIAL WHILE AC IS CONNECTED. Just blew my Earth Leakage Circuit Breaker. No visible damage. Pfew. How could I forget...

    image

    Current template for POWR316D is:

    {"NAME":"Sonoff POWR316D","GPIO":[32,0,0,0,0,576,0,0,0,224,0,0,3104,0,320,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}
    
  10. barbudor commented on Jul 2, 2022

    @barbudor
    Contributor

    Lcd driver datasheet
    Titan Micro TM1621 Lcd driver.pdf
    Chinese but seems understandable. Otherwise Google translate is our friend 😊

  11. sfromis commented on Jul 2, 2022

    @sfromis
    Contributor

    Some driver code found here: https://github.com/emsyscode/TM1621

    /*
    This code is not clean and also is not perfect, this is only 
    a reference to extract ideas and adapte to your solution.
    */
    
  12. nobodyman1 commented on Jul 3, 2022

    @nobodyman1
    Author

    Lcd driver datasheet Titan Micro TM1621 Lcd driver.pdf Chinese but seems understandable. Otherwise Google translate is our friend 😊

    I found the HT1621 which looks very similar to me.

  13. Nuffic commented on Jul 3, 2022

    @Nuffic

    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.

  14. sfromis commented on Jul 3, 2022

    @sfromis
    Contributor

    Looks like support for both is in the works.

  15. 513 remaining items

  16. capoccio1 commented on Aug 3, 2024

    @capoccio1

    Hi, something strange is happening.
    Since I updated all my devices to the new firmware 14.1.0 I can no longer detect them from Alexa, it always gives me "device not connected".
    I tried in Alexa to delete all the dev
    Screenshot 2024-08-03 161642
    ices and search again but it doesn't find them.
    Can you give me some suggestions?

  17. void-spark commented on Dec 5, 2024

    @void-spark

    POWR320D, flashed it using the web flasher (https://tasmota.github.io/install/, default selection 'Tasmota'), had the usual issue of it boot cycling when connected only with 3.3v from the USB serial converter (tried adding another ESP32 module to add some more power, but it seems to need a lot.) But connecting it to AC power (after disconnecting serial!!) I got it into AP, used my phone to connect to it, opened page "http://192.168.4.1" (had to type the http part also, and had to disable data), set up wifi, used the POW320D template, and all is well :D Tasmota is still awesome :)

    But one note for others, I always solder a header on the board to easily connect the USB serial module.
    On the (my) POWR320D, the pins will stick out in the back, and that's exactly where they have the plastic ridge which prevents light from the little leds escaping.. The case will not fit together. For this module, don't solder the header :D
    Or do it in such a way that the back of the PCB is perfectly flat, I guess you could insert the header only a bit, and let the solder seep in :)

  18. antoniocanelas commented on Dec 29, 2024

    @antoniocanelas

    Hi all, after an firmware update, now I have Solar Production with negative numbers. Do you know how to solve this?
    image

  19. Lesateq commented on Feb 27, 2025

    @Lesateq

    I have used POWR316 & POW320 in several applications. Working with the serial port is like working with explosives. One error and your done. To avoid any error I have integrated a HC-06 Bluetoothmodule in the device. If you glue a 4 pin header in the corner of the plastic case the HC-06 it is quite securely fixed. You can use the Bluetooth access to upload firmware, use the serial monitor, etc. If you brick the device you can just reinstall working firmware. And if you connect the mains in a safe way you have a perfect and safe development environment. For console I use Serial Bluetooth Terminail (Android). On Windows11 you can configure a serial port after connecting Bluetooth to use Arduino IDE. For rapid development is use Arduino OTA to upload firmware and meanhile I keep the Serial Bluetooth Terminal connected for console. Tip: do not forget to configure the HC-06 before you integrate it in the POWR316/320. You need to connect it to a serial port/FTDI to configure it...

    Image

    Image

  20. arendst commented on Feb 27, 2025

    @arendst
    Owner

    Nice idea. I wonder what the hole is for.

  21. Lesateq commented on Feb 27, 2025

    @Lesateq

    That hole was indeed for an earlier version with a physical connection... Not needed anymore when using the HC-06. I also made a development version of the Sonoff S60 with the HC-06. But disassembled and built in a Strapubox.

  22. arendst commented on Feb 28, 2025

    @arendst
    Owner

    Great. I ordered some HC-05 and see if they can be used as well.

  23. arendst commented on Mar 4, 2025

    @arendst
    Owner

    Been playing with both HC-05 and HC-06. Both fail to keep a bluetooth connection active on my Windows 11 Pro.

    So for now I'm stuck to using my old solution:

    Image

  24. Lesateq commented on Mar 4, 2025

    @Lesateq

    The great old opto couplers... In the past I used an FTDI type with opto couplers, thats why the hole was drilled in the unit. In my setup I am using a couple of Android devices with Serial Bluetooth Terminal and that works well without dropping the connection. In the past I have used a Windows 11 Home laptop a couple of times to upload firmware with the HC-06 and succeeded. However, I will check about dropping the Bluetooth connection. I also connected from Mac/Sonoma, but since the last OS update it doesn't work anymore. Not to mention various frustrations with BLE on the Mac in other applications. Since I work with Bluetooth our carpenter has drilled some big screws in the windows in my home office (on the second floor). That is to prevent me to actually jump out of the window...

  25. joba-1 commented on Mar 4, 2025

    @joba-1
    Contributor

    haha, yes, bluetooth and mental health is hard to combine.

  26. Lesateq commented on Mar 4, 2025

    @Lesateq

    On my Windows 11 Home, equipped with Realtek 5 BT adapter and a very old driver it seems to stay connected; now just running to watch some console messages from the POWR316D.

    Image

  27. arendst commented on Mar 4, 2025

    @arendst
    Owner

    Thx. Just ordered the TP-Link UB500 which should use a realtek driver. To be continued.

  28. Lesateq commented on Mar 4, 2025

    @Lesateq

    You are welcome. By the way, these are my COM settings using two HC-06's, named Lesateq1 and Lesateq2. Connected to POWR316 and S60. I remember I had some problems with communication on lower port numbers. Very peculiar since I could not find any device, application or driver using lower COM numbers. I hope your office is on the ground floor... Good luck.

    Image

  29. arendst commented on Mar 5, 2025

    @arendst
    Owner

    It worx using the TP-Link UB500 and HC-06!

    Nice solution although before a connection is made I had to jump through some hoops which, I fear, I cannot reproduce ;-)

  30. arendst commented on Mar 5, 2025

    @arendst
    Owner

    And finally as a reminder how to configure HC-05 and HC-06 (both work fine) using Termite on a PC:

    *** HC-05 HC05
    - HC-05 default bluetooth COM 9600baud and pin is 1234.
    - Configure for 115200bps and name it hc05a:
      - Set Termite to 38400bps and Append Cr+LF
      - Enter AT mode by button press on power connection.
      - AT+VERSION? -> VERSION:3.0-20170601<cr><lf>OK
      - AT+UART=115200,0,0 -> OK
      - AT+NAME=hc05a -> OK
      - Toggle power to exit AT mode.
    - On PC bluetooth settings. Add device. Select Unknown device. Enter pin 1234
    - Two COM ports are added and bluetooth reports not connected.
    - See Bluetooth settings to find which COM port is hc05a SPP Dev.
    - Set Termite to 115200bps and Append Cr+LF
    - HC-05 led blinks until Termite connection is made to hc05a SPP Dev COM. (PC Bluetooth connected)
    - During connection HC-05 led blinks twice with long pause
    - On termite disconnection HC-05 led will blink normally (PC Bluetooth not connected)
    
    *** HC-06 HC06
    - HC-06 default bluetooth COM 9600baud and pin is 1234.
    - Configure for 115200bps and name it hc06b:
      - Set Termite to 9600bps and Append nothing
      - AT+BAUD8 -> OK115200
      - AT+NAMEhc06b -> OKsetname
    - On PC bluetooth settings. Add device. Select Unknown device. Enter pin 1234
    - Two COM ports are added and bluetooth reports not connected.
    - See Bluetooth settings to find which COM port is hc06b SPP Dev.
    - Set Termite to 115200bps and Append Cr+LF
    - HC-06 led blinks until Termite connection is made to hc06b SPP Dev COM. (PC Bluetooth connected)
    - During connection HC-06 led is off
    - On termite disconnection HC-06 led will blink normally (PC Bluetooth not connected)
    

    Image

    Both verified to work nicely on a shelly using the VoltLink USB adapter (Alas it needs swapped Rx/Tx signals to the bluetooth device) with it's tiny shelly pins and WITHOUT CONNECTING THE USB CABLE!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementType - Enhancement that will be worked onfixedResult - The work on the issue has ended

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions