Which release for a sonoff S20

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Which release for a sonoff S20

#1 Post by Gilles » 26 Nov 2020, 15:40

I have a sonoff S20 flashed with
sonoff.JPG
sonoff.JPG (17.73 KiB) Viewed 17261 times
I am using it to check if a window is open for more than 10 minutes and then it sends a mail. The mail doesn't work anymore. I would like to use smtp2go but,
I cannot configure the notification with smtp2go because the "pass" field is missing.
I need to upgrade the sonoff S20. It makes a long time that I have not configured espeasy.

1) Which version would you recommend ?
2) Can I just open the tools/Load screen and choose the 1024 bin file once unzipped?

Thanks for your help.
Gilles

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Which release for a sonoff S20

#2 Post by TD-er » 26 Nov 2020, 17:16

For 1M builds we currently don't have one that can be flashed via OTA.
But if you are willing to connect the node to the PC for flashing, you can use just any 1M build with the correct CPU (ESP8266 or ESP8285)

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: Which release for a sonoff S20

#3 Post by Gilles » 27 Nov 2020, 15:00

Thanks
I have upgraded the sonoff S20 to the version : ESP_Easy_mega_20201125_custom_beta_ESP8266_1M.bin with Arduino becasue the ESP.Easy.Flasher.exe didn't work for me.

But I don't see the fields :
sonoff2.JPG
sonoff2.JPG (106 KiB) Viewed 17225 times
removing the attachment

And the main panel shows "GIT Version Custom" instead of the version number
sonoff4.JPG
sonoff4.JPG (44.64 KiB) Viewed 17225 times
Did I miss something ?
Thanks
Last edited by Gilles on 27 Nov 2020, 15:50, edited 2 times in total.

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Which release for a sonoff S20

#4 Post by TD-er » 27 Nov 2020, 15:11

Hmm that doesn't look like the current source code.
It is missing the icons in the tabs and the first page doesn't have this split layout of system info for a long time anymore.

It looks like the web interface of +/- 2 years ago, so what source code were you using?

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: Which release for a sonoff S20

#5 Post by Gilles » 27 Nov 2020, 15:18

I have downloaded : ESPEasy_ESP82xx_mega-20201125.zip 72094 Ko
from : https://github.com/letscontrolit/ESPEas ... a-20201125

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Which release for a sonoff S20

#6 Post by TD-er » 27 Nov 2020, 15:53

Can you show the build date on the sysinfo page?

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: Which release for a sonoff S20

#7 Post by Gilles » 27 Nov 2020, 16:14

I am afraid there is no date.
sonoff5.JPG
sonoff5.JPG (85.39 KiB) Viewed 17205 times
Can it be an arduino issue with the compilation ?
I have tried several times to use ESP.Easy.Flasher.exe but once started with the right COM port and bin file, it doesn't do anything.

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Which release for a sonoff S20

#8 Post by TD-er » 27 Nov 2020, 16:25

Yep this proves it.
You didn't update the firmware and it is still running the old firmware.

Make sure you keep GPIO-0 connected to GND (probably the button pressed) when resetting the ESP and keep it pressed until you start flashing.

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: Which release for a sonoff S20

#9 Post by Gilles » 27 Nov 2020, 16:48

Thanks,
I will give it a try.
But the arduino has loaded the firmware anyway. And there was no compilation error
sonoff6.JPG
sonoff6.JPG (60.75 KiB) Viewed 17199 times
I will check this evening. I will also try again to use your tool instead of Arduino.

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: Which release for a sonoff S20

#10 Post by Gilles » 27 Nov 2020, 18:13

I have tried to use ESP.Easy.Flasher.exe. No way,
it stays frozen with:
sonoff7.JPG
sonoff7.JPG (110.68 KiB) Viewed 17193 times
The port is the COM3 port. The FTDI doesn't blink.
I have also tried to tick DOUT.

Then I have used Arduino and it has compiled and loaded a version(with the same wiring) , but you are right it is an old Espeasy version. After selecting the right "ESPEasy.ino" file, the compilation has started and I have got a lot of errors (file not found) . It seems that the directory structure is not the one that arduino expects.
I have tried to copy the missing files in the right directories, but there are too many errors.
So I give up for this evening.

I would really appreciate some help to fix the problem that I have with your tool to be able to load the bin file instead of compiling one.

The SONOFF S20 is a standard one that I use for several years.

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: Which release for a sonoff S20

#11 Post by Gilles » 28 Nov 2020, 09:02

This morning, I have tried to use FlashESP8266.exe instead. I have copied the bin file I want in the same directory and it has worked. The SONOFF S20 has been flashed.

Code: Select all

Build:⋄
20111  - Mega
System Libraries:⋄
ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support
Git Build:⋄

Plugin Count:⋄
46 [Normal]
Build Time:⋄
Nov 25 2020 10:15:27
Binary Filename:⋄
ESP_Easy_mega_20201125_normal_ESP8266_1M
Build Platform:⋄
Linux-4.19.104-microsoft-standard-x86_64-with-glibc2.29
Git HEAD:⋄
mega-20201125_5e64afa
BUT , the notification tab is empty
sonoff8.JPG
sonoff8.JPG (62.83 KiB) Viewed 17158 times
When I edit a notification it shows nothing but "None" in the list.
Do you prefer I open a new case ?

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: Which release for a sonoff S20

#12 Post by Gilles » 28 Nov 2020, 15:38

I have downgraded to ESP_Easy_mega_20201016_normal_ESP8266_1M.bin instead of ESP_Easy_mega_20201125_normal_ESP8266_1M.bin and now, the notifications are back :)

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: Which release for a sonoff S20

#13 Post by Gilles » 28 Nov 2020, 19:02

The smtp notification doesn't work but I may have a configuration issue.
On the other hand, it seems that this version doesn't detect when a timer reaches 0 so doesn't trigger the rules/notifications.
I think that I will downgrade again to the version I was using for several years as the new ones are not reliable.
To summarize, with a SONOFF S20 :
ESP_Easy_mega_20201125_normal_ESP8266_1M.bin : notification tab empty
ESP_Easy_mega_20201016_normal_ESP8266_1M.bin: timer = 0 is not managed, so rules are not triggered and the smtp notification doen't work (I don't see anything about in the log)

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Which release for a sonoff S20

#14 Post by TD-er » 28 Nov 2020, 23:36

Gilles wrote: 28 Nov 2020, 15:38 I have downgraded to ESP_Easy_mega_20201016_normal_ESP8266_1M.bin instead of ESP_Easy_mega_20201125_normal_ESP8266_1M.bin and now, the notifications are back :)
Yep I noticed the "normal" builds were accidentally marked as "limit build size", which also excludes the notification plugins.
Will be fixed in the next build.

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: Which release for a sonoff S20

#15 Post by Gilles » 29 Nov 2020, 07:28

any idea about the timers issue?
In the log, there is a record when the timer is set, but the rules are not applied when the timer reaches 0 .

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Which release for a sonoff S20

#16 Post by TD-er » 29 Nov 2020, 10:59

Gilles wrote: 29 Nov 2020, 07:28 any idea about the timers issue?
In the log, there is a record when the timer is set, but the rules are not applied when the timer reaches 0 .
Do you have an example?
Timers should work, so I think it may be a syntax error thingy...

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: Which release for a sonoff S20

#17 Post by Gilles » 29 Nov 2020, 11:52

Thanks, I will check the config.
1) What would be the LOG config to see a maximum of events?
Today I have set
sonoff9.JPG
sonoff9.JPG (34.93 KiB) Viewed 17075 times
2) Do you have an ETA for the next build?

Regards,
Gilles

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Which release for a sonoff S20

#18 Post by TD-er » 29 Nov 2020, 13:37

Debug dev is the most data, but that may also be too much as the data also has to be generated and sent to wherever you want it to end up.

Please note that all builds with "Limit build size" set (which sadly also applies to "normal" in the last build) you don't have debug logs (and the more verbose debug-dev)

I planned to make a build later today.

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: Which release for a sonoff S20

#19 Post by Gilles » 30 Nov 2020, 07:18

The Release mega-20201130 has been published but it only contains 4M versions. Would be it possible to have the 1M version ?
sonoff91.JPG
sonoff91.JPG (104.95 KiB) Viewed 17030 times

User avatar
Ath
Normal user
Posts: 3519
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Which release for a sonoff S20

#20 Post by Ath » 30 Nov 2020, 07:24

You need the other download, with ESP8266 in it's name, you downloaded the ESP32 file.
/Ton (PayPal.me)

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: Which release for a sonoff S20

#21 Post by Gilles » 30 Nov 2020, 08:22

oops, I was too impatient.
My bad
Thanks

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Which release for a sonoff S20

#22 Post by TD-er » 30 Nov 2020, 08:47

Gilles wrote: 30 Nov 2020, 08:22 oops, I was too impatient.
[...]
Well then it is nice to realize you had a reply in 6 minutes :)

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: Which release for a sonoff S20

#23 Post by Gilles » 30 Nov 2020, 09:20

I have uploaded the ESP_Easy_mega_20201130_normal_ESP8266_1M.bin release to the SONOFF. Again I get no notification available.
Can you help ?

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Which release for a sonoff S20

#24 Post by TD-er » 30 Nov 2020, 09:47

I will have a look...

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Which release for a sonoff S20

#25 Post by TD-er » 30 Nov 2020, 10:13

Ah found it....

Code: Select all

#ifdef SIZE_1M
  #ifdef USES_C003
    #undef USES_C003
  #endif
  #ifndef LIMIT_BUILD_SIZE
    #define LIMIT_BUILD_SIZE
  #endif
#endif
So for 1M builds it is indeed excluded.
I will have a look at it to see what can be done to fix it without making it way too complex.

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: Which release for a sonoff S20

#26 Post by Gilles » 30 Nov 2020, 10:19

Thanks a lot.
Good luck
Gilles

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: Which release for a sonoff S20

#27 Post by Gilles » 01 Dec 2020, 07:59

Else, could you advise an older espeasy version (which has the notification feature) that I could use as I don't need a lot of features : I have connected one reed to detect when the window is open and 3 rules ( timer + sendhttp + sendmail) ?
Thanks
Gilles

User avatar
Ath
Normal user
Posts: 3519
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Which release for a sonoff S20

#28 Post by Ath » 01 Dec 2020, 08:22

I have been running the 20201022 release very stable on a couple of Sonoff's over here. It has the Notification plugins for Email and Buzzer included.
/Ton (PayPal.me)

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: Which release for a sonoff S20

#29 Post by Gilles » 01 Dec 2020, 10:38

Thanks,
I will download it asap.

Regards,
Gilles

Gilles
Normal user
Posts: 101
Joined: 21 Dec 2017, 11:09

Re: Which release for a sonoff S20

#30 Post by Gilles » 01 Dec 2020, 13:00

You are right, this version (20201022) works well. I have everything I need now:)
Thanks
Gilles

Post Reply

Who is online

Users browsing this forum: No registered users and 138 guests