Support for SONOFF Smart Stackable Power Meter #13447
Replies: 54 comments 112 replies
-
This is under investigation but the main processor is an STM32 ARM |
Beta Was this translation helpful? Give feedback.
-
I'm working on it but it may take a while because:
Here are some pictures of the internals: |
Beta Was this translation helpful? Give feedback.
-
Today a Proof of Concept is released in the dev branch. It supports a subset of the Sonoff/eWelink functionality. Before usage I recommend to make a full backup of the 4MB ESP32 flashcode so you can go back using the original Sonoff firmware (hint: See source file
Enable the driver using |
Beta Was this translation helpful? Give feedback.
-
With latest dev release ethernet is also supported using the following template:
|
Beta Was this translation helpful? Give feedback.
-
Fixed GUI: |
Beta Was this translation helpful? Give feedback.
-
Hy, My chipset accroding esptool = ESP32-DoWD-V3. Help is appreciated, br |
Beta Was this translation helpful? Give feedback.
-
Hi! I found issue with the GUI. I have a SPM Main with 4x Relay connected. GUI Rotate each relays, L1 to L16 is rotated well but after that, I have L0 L0 L64 etc. |
Beta Was this translation helpful? Give feedback.
-
Pls update to latest release or development version then report back. |
Beta Was this translation helpful? Give feedback.
-
Try latest dev which has below change incorporated:
|
Beta Was this translation helpful? Give feedback.
-
@arendst Do you know if i'm plugging 8 relays if it will work? Does the limitation of 7 relays can be bypass? Is it a software limitation? What cause this limitation? |
Beta Was this translation helpful? Give feedback.
-
As said begore it's a Tasmota software limitation. Currently the power status is held in a 32-bit register; 28 bits are available for relays, the other four bits for optional lights. Extending this needs a basic rewrite of power control within Tasmota. Many power features won't work as they are dependant on the 32-bit register size. Oh and plugging in more relays won't show up in Tasmota as the driver is limitted to 28 relays too. |
Beta Was this translation helpful? Give feedback.
-
@arendst I'm trying to reset PowerUsage using the REST API. I don't know why but EnergyUsage, EnergyYesterday, EnergyTotal and EnergyToday are not working... I got an Unknow command response. There is my GET request http://192.168.14.87/cm?cmnd=EnergyYesterday1%200 1 is for L1 The response I get is:
Is there something I did wrong? |
Beta Was this translation helpful? Give feedback.
-
Those commands are not implemented because al power monitoring and logging is performed by the additional arm processor. The arm logs for up to 128 relays and ONLY up to six months the energy usage values. Tasmota has no direct control over this. A possible solution would be to implement storage within tasmota of these values for all relays which take a lot of flashwrites to keep them safe. There is a reason why they implemented the SD card under control of the ARM processor.as it allows much more write operations then esp32 flash. |
Beta Was this translation helpful? Give feedback.
-
Again as said before ALL power usage is managed by the ARM processor. Tasmota requests the logging from the ARM at regular intervals (round robin every relay takes up to a few seconds per relay). The logging consists of 6 month daily Energy values (6 month * 30 days = 180 values). The first value is the today energy usage, the second value is yesterday's usage. Total energy is the sum of all 180 values. The logging is a FIFO buffer so after 180 days the oldest value is lost. Logging is under control of the ARM processor. What Tasmota could do is offset the energy values for every relay for all three energy types resulting in 128 (relays) * 3 (energy types) * 4 (bytes in an uint32_t register) = 1526 bytes needed in flash. Also the command to let the user do this would need to be provided. Currently not planned. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to find a way to keep track of power usage each day for each lines. Do you know at what time Today Energy reset to 0? |
Beta Was this translation helpful? Give feedback.
-
Good morning, |
Beta Was this translation helpful? Give feedback.
-
I am a newbie to tasmota and need some help here. I were able to flash other Sonoff but not to this SPM Main unit. I used tasmotizer and getting "Invalid head of packet (0x46)". Tried the web installer approach mentioned above and not luck. Any suggestion is much appreciated. |
Beta Was this translation helpful? Give feedback.
-
It does work normally.`00:00:00.479 WIF: WifiManager active for 3 minutes`
-------- Ursprüngliche Nachricht --------Von: hotpot-king ***@***.***> Datum: 01.07.22 14:34 (GMT+01:00) An: arendst/Tasmota ***@***.***> Cc: Jason2866 ***@***.***>, Comment ***@***.***> Betreff: Re: [arendst/Tasmota] Support for SONOFF Smart Stackable Power Meter (Discussion #13447)
Is it normal if it keeps looping like below?
00:00:00.002-212/50 HDW: ESP32-D0WD-V3
00:00:00.042-210/49 UFS: FlashFS mounted with 308 kB free
00:00:00.085 CFG: Loaded from File, Count 2
00:00:00.100 QPC: Count 5
00:00:00.200 BRY: Berry initialized, RAM used=3731 bytes
00:00:00.225 Project tasmota - Tasmota Version 12.0.2(tasmota)-2_0_3(2022-06-20T12:41:24)
00:00:00.479 WIF: WifiManager active for 3 minutes
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DOUT, clock div:2
load:0x3fff0030,len:184
load:0x40078000,len:12596
load:0x40080400,len:2916
entry 0x400805c4
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
[
{
***@***.***": "http://schema.org",
***@***.***": "EmailMessage",
"potentialAction": {
***@***.***": "ViewAction",
"target": "#13447 (comment)",
"url": "#13447 (comment)",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
***@***.***": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
Beta Was this translation helpful? Give feedback.
-
I need a TLS enabled firmware for SPM. I used to follow the Gitpod toturial for other Sonoff devices that use ESP8266. What settings do I need to specify for compiling ESP32 binary? |
Beta Was this translation helpful? Give feedback.
-
Hi :) Thank you very much |
Beta Was this translation helpful? Give feedback.
-
Good evening everyone, I am new to these issues but perhaps one of you can give me your support, I have a project of 26 spm-4relays and 1 spm main, the company that hired me can not give me access to the entire wifi network and requests only the URL's or domains with which the spm connects, ie ewelink. I have used Wireshark and I see that my modules connect to ip 224.0.0.251 when I link it to Ewelink. I would like to know how I can get the URL's with which the ewelink app works so that they can give access to the client company. Thank you very much in advance |
Beta Was this translation helpful? Give feedback.
-
Thanks for the work, I really appreciate it. It makes this device actually usable. I have two questions:
|
Beta Was this translation helpful? Give feedback.
-
Is it possible to add external buttons/switches to the relay modules? |
Beta Was this translation helpful? Give feedback.
-
Does anyone happen to have the original factory firmware? Can you share it with me? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
-
Hello community, I hope this message finds you well. We are currently facing an issue while attempting to flash our SPM Main using an USB adapter. We have successfully connected the RX, TX, 3V, and GND pins to the adapter. Following the connection, we input the following command:
However, we consistently receive an error. It's worth noting that before executing the command, we ensure that GPIO0 is properly connected to GND. To provide additional context, we want to mention that we have successfully flashed an ESP8266 using the same USB adapter in the past. The current issue seems specific to the SPM Main. To provide a visual reference, we have attached a few images below illustrating our hardware setup. We would greatly appreciate any insights into what might be causing this issue or suggestions for troubleshooting. Your assistance is invaluable to us. Thank you in advance for your time and expertise. |
Beta Was this translation helpful? Give feedback.
-
Hello all! I am currently trying to install Tasmota on my Sonoff SPM Main Unit. To do so, from what I understood, the best way is to use the WebInstaller (https://tasmota.github.io/install/). But there are a lot of different Tasmota firmwares. Which one should I use? |
Beta Was this translation helpful? Give feedback.
-
Hello, I install tasmota on spm today, it works great. but why all energy param didn't give any number, I'm waiting about 2 hours to see the kWh increase, I use auto-config on Tasmota |
Beta Was this translation helpful? Give feedback.
-
Is the ARM firmware version 1.3 supported by Tasmota? |
Beta Was this translation helpful? Give feedback.
-
Good afternoon. Do we know whether the ARM firmware version 1.3 is supported by Tasmota yet? |
Beta Was this translation helpful? Give feedback.
-
Good afternoon. Please enlighten me. I trying to flash Sonoff-SPM-Main. I already tried the device with Ewelink and it works properly. When I tried to flash using Tasmota, this is the respond. I powered up the device using AC. GND and GPIO0 has been soldered together. |
Beta Was this translation helpful? Give feedback.
-
Hi! Sonoff has recently released a new device with amazing capabilities: - SONOFF Smart Stackable Power Meter. Is there a chance that it will be possible to upload the Tasmota firmware there and connect it to Domoticz?
Beta Was this translation helpful? Give feedback.
All reactions