Page 1 of 1

cannot save rules and GUI is odd

Posted: 31 Dec 2023, 08:41
by Gilles
I run a SONOFF S26 Image .
I cannot save the rules and the GUI seems incomplete.Image
2.JPG
2.JPG (42.08 KiB) Viewed 13940 times
It shows "saved" even before saving anything , after a factory reset.
I have configured this S26 several months ago and I don't remember having any issue with it.
After several unsuccessful tries, I have decided to make a factory reset. It has not changed anything, same problem.

One more display Image
3.JPG
3.JPG (39.69 KiB) Viewed 13940 times
What would be your advice? Reopen the S26 , solder again and reload a new copy of the firmware ?
Let me know if you need more info. ( I get nothing in the LOG file ('log error ' setting)).

Re: cannot save rules and GUI is odd

Posted: 31 Dec 2023, 08:41
by Gilles
Added a notify to be alerted in case of answer.

Re: cannot save rules and GUI is odd

Posted: 31 Dec 2023, 10:12
by Ath
Something changed at the CDN-supplier for providing the .css and .js files, breaking some UI stuff on ESPEasy side. This has been corrected.
You can upgrade to the latest ESPEasy release to solve the issue.

Re: cannot save rules and GUI is odd

Posted: 31 Dec 2023, 10:39
by Gilles
Thanks for your explanation.
I suppose I can't upgrade using wifi so I need to reopen the Sonoff S26 and solder the cables again :(
The S20 was easier to upgrade.
Gilles

Re: cannot save rules and GUI is odd

Posted: 31 Dec 2023, 12:15
by TD-er
Does the S26 have an accessible flash chip?
If so, then you might want to consider also upgrading this flash chip to a 4M variant so you never need to open up the enclosure again.

Re: cannot save rules and GUI is odd

Posted: 02 Jan 2024, 06:48
by Gilles
I will check and order it if I think that I am able to make it.

I suppose that I have to first flash the new one before solder it on the S26. So can I use the "blank_4MB.bin".
I have found a link which explains: Sonoff S26 EEPROM Upgrade – MakeNotes.de but I am not sure to understand everything.
Thanks for the 4M tip.

Re: cannot save rules and GUI is odd

Posted: 02 Jan 2024, 08:51
by Ath
That link doesn't work, it should go here: https://makenotes.de/2019/05/sonoff-s26-eeprom-upgrade/

Re: cannot save rules and GUI is odd

Posted: 02 Jan 2024, 09:27
by Gilles
Hi Ath,
Sorry, I have posted a wrong url. But I was talking about the same .

Re: cannot save rules and GUI is odd

Posted: 16 Jan 2024, 07:09
by Gilles
Hi Ath,
you were right.
I have just upgraded the Sonoff S26 to the "ESP_Easy_mega_20231225_normal_ESP8266_1M" version and now , everything looks fine.

NB: just one thing, Now, I must tick the Device "Inversed Logic". It was not ticked with the former version.

Thanks again
Gilles

Re: cannot save rules and GUI is odd

Posted: 16 Jan 2024, 09:50
by Ath
Gilles wrote: 16 Jan 2024, 07:09 NB: just one thing, Now, I must tick the Device "Inversed Logic". It was not ticked with the former version.
Not sure what you are trying to say here :?: I don't see mentioned any setting above, so I don't understand what you are trying to set to "Inversed Logic".

Re: cannot save rules and GUI is odd

Posted: 16 Jan 2024, 11:04
by Gilles
With the December espeasy version, I need to tick the "inversed logic" option at t he device level. If I don't, when the S26 is switched on, the bulb connected to it is switched on as well.
Here is the december version screen . Look at the yellow part.
S26.JPG
S26.JPG (61.89 KiB) Viewed 12475 times
Before the upgrade, I didn't need to tick this option to avoid the bulb to be switched on at startup.

Re: cannot save rules and GUI is odd

Posted: 16 Jan 2024, 11:35
by TD-er
But the S26 only has a push button right?
So why use the switch type set to "Switch" here and not as "push button" ?
Now you need to keep the button pressed to keep it "active"

Re: cannot save rules and GUI is odd

Posted: 16 Jan 2024, 13:11
by Ath
What old version of ESPEasy was installed, before you upgraded to the August 2023 release, as the August version also must have had this behavior.

Re: cannot save rules and GUI is odd

Posted: 17 Jan 2024, 07:42
by Gilles
I have a S26 that I have just upgraded ( see above). Once upgraded , I have copied the configuration of the S20. I use both to switch on/off heaters using wifi.
I don't use the S2x button.
s20.JPG
s20.JPG (52.33 KiB) Viewed 12323 times
s201.JPG
s201.JPG (13.65 KiB) Viewed 12323 times
s202.JPG
s202.JPG (38.19 KiB) Viewed 12323 times
The S20 runs
GIT version: v2.0-20180126
along with these rules:

Code: Select all

On ET do 
gpio,12,0
gpio,13,0 
TimerSet,8,0
EndOn

On AL do 
gpio,12,1
TimerSet,8,3600
EndOn

On Rules#Timer=8 Do
gpio,12,0
gpio,13,0
EndOn
I trigger it with "192.168.1.60/control?cmd=event,AL" , it starts a timer (1 hour) . When the timer expires, it switches off the S2x.

Re: cannot save rules and GUI is odd

Posted: 17 Jan 2024, 09:38
by TD-er
I don't see how the switch (button) task is interacting with the relay given the rules.
So I don't know why you now need to have the inverse logic checked.

It is hard to tell what specifics may have changed in the last 6 years to change this behavior :)

Re: cannot save rules and GUI is odd

Posted: 17 Jan 2024, 13:11
by Gilles
You are right, there are some other rules to make the button work.
I usually don't use the button.
I use the wifi (http://192.168.1.118/control?cmd=event,AL) to switch on the heater(which is in the basement) during my breakfast, so when then I go downstairs to the basement to work, the temperature is nice :)
One hour later, it is automatically switched off.