ESPEasy v2.0.0-dev12 released

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: ESPEasy v2.0.0-dev12 released

#41 Post by grovkillen » 13 Nov 2017, 12:26

Please report on GitHub.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: ESPEasy v2.0.0-dev12 released

#42 Post by vader » 13 Nov 2017, 19:04

Had the same. Just make a reset and config the ESP from scratch (no config restore to be sure!). After that:

Rule:
on Button#State do
if [Button#State]=1
event switchon
else
event switchoff
endif
endon

[Submit]

Log:
197926 : FILE : Saved config.dat
197951 : FILE : Saved security.dat

:D

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: ESPEasy v2.0.0-dev12 released

#43 Post by Shardan » 13 Nov 2017, 19:59

I've configured a "blank" ESP-12E for my dust sensor prototype with 2.0.0-DEV12 TESTING, sources Oct.25. '17.
No issues even with a lot of rules.
Regards
Shardan

mrwee
Normal user
Posts: 225
Joined: 31 Aug 2016, 12:52

Re: ESPEasy v2.0.0-dev12 released

#44 Post by mrwee » 13 Nov 2017, 21:16

I'm able to reproduce this across different ESP8266 based products: Sonoff Basic, Sonoff S20, Sonoff TH16 & Wemos D1 mini pro.
My settings are:
- Various names for the device, e.g. "Garden light east"
- Different Unit ID's (e.g. 95, 128, 136)
- Static IP address
- OpenHAB MQTT with IP address
- NTP server set to IP addess
- Two devices configured: Button & Relay GPIO's

To me it seems like when the rule(s) become too long, the error occurs. I cannot reproduce at all with dev11.

Edit: Most tests have been performed with freshly flashed devices. Have also tried the 'reset' command, and starting all-over. Same result.

mrwee
Normal user
Posts: 225
Joined: 31 Aug 2016, 12:52

Re: ESPEasy v2.0.0-dev12 released

#45 Post by mrwee » 14 Nov 2017, 22:23

This rule:
On System#Boot do //When the ESP boots, do
publish %sysname%/sysname,%sysname%
publish %sysname%/IP,%ip%
publish %sysname%/relay/Switch,[relay#Switch]
timerSet,1,60 //Set Timer 1 for the next event in 30 seconds
endon

On Rules#Timer=1 do //When Timer1 expires, do
publish %sysname%/relay/Switch,[relay#Switch]
timerSet,1,60 //Resets the Timer 1 for another 30 seconds
endon
results in the 'FS : Error while reading/writing config.dat in 926" error on one Sonoff TH10, but not on another TH10. Settings are identical (besides the obvious IP, device ID etc.).

If I change it to:
On System#Boot do //When the ESP boots, do
publish %sysname%/sysname,%sysname%
publish %sysname%/IP,%ip%
publish %sysname%/relay/Switch,[relay#Switch]
endon
then it works.

If I change it to:
on onoff#push=1 do
if [relay#Switch]=1
gpio,12,0
else
gpio,12,1
endif
endon
I get the error on the same module, but not the other.

If I change it to:
on onoff#push=1 do
endon
then no error.

Seems to me, that it could be related to the size of the rule.

Post Reply

Who is online

Users browsing this forum: No registered users and 38 guests