Search found 72 matches

by _Cyber_
06 Apr 2021, 15:13
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

thank you. :-) the "winter"-project for the shutters was quite successful, so the legacy buttons on the wall are very very rarely used. :D now the "summer" part wants to start where I control them based on outside temperature. means, some more lines in the in sum over 14k long ru...
by _Cyber_
06 Apr 2021, 14:40
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

Those are not yet present, but Grovkillen is also asking me for a while to have the %uptime_ms%, which is essentially millis(). So that will be added soon. The others are also feasible, but I don't know if unixtime_ms is also usable to keep in sync with other nodes as NTP does have a jitter of +/- ...
by _Cyber_
04 Apr 2021, 17:58
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

by the way: during looking for the reason the issue has gone away, without any specific idea what was causing... :roll:
by _Cyber_
30 Mar 2021, 15:18
Forum: ESP Easy: Software
Topic: after update: no wifi connection any more, stops at "WIFI : Start network scan"
Replies: 3
Views: 465

Re: after update: no wifi connection any more, stops at "WIFI : Start network scan"

yes, its an hidden AP.
I guess I cannot fore it anyhow to spawn the AP again? so, unhide SSID, connect (hopefully), tick the hidden ap setting and hide the SSID again? :shock:

Thanks!

BR
Alois
by _Cyber_
30 Mar 2021, 11:20
Forum: ESP Easy: Software
Topic: after update: no wifi connection any more, stops at "WIFI : Start network scan"
Replies: 3
Views: 465

after update: no wifi connection any more, stops at "WIFI : Start network scan"

I have a wemos D1 mini which is installed (and hardly reachable) behind a control unit of a thermostat. it has there weak, but stable wifi signal (between -80 and -85). I have checked / set in advanced settings: Connection Failure Threshold: 10 Force WiFi B/G: checked Restart WiFi Lost Conn: checked...
by _Cyber_
17 Feb 2021, 09:06
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

I powered over the integrated USB-Port (over the CP2102) and as I read about the reset on plugging in the serial line and I could not cut TX line between CP2102 chip and ESP I am now powering over 3.3V pins + FTDI USB2Serial converter. but even there it resetted (the logs above are all with the FTDI...
by _Cyber_
17 Feb 2021, 08:21
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

normally I have disabled the debuglog, and also serial console is disabled completely. so I noticed the reboots also with only "Web Log Level" set to "Info", but no client was fetching the weblogs, I assume then it is not generated? the issue with the serial console is, that the ...
by _Cyber_
16 Feb 2021, 17:49
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

I noticed, this node got quite unstable, has a uptime of 10mins up to 2 hours, but not more. It is doing nothing, besides one HTTP call a minute (the rule is in rules1.txt at the very front, it is the 3rd on / endon block, 1882 chars are before it). the load is normally below 15% on Clock#Time=All,*...
by _Cyber_
16 Feb 2021, 09:06
Forum: ESP Easy: Software
Topic: ESPEasy Backup script
Replies: 2
Views: 1276

Re: ESPEasy Backup script

Just as a suggestion for you to also have a look at as you probably use these kind of scripts for other backups as well :) Have you ever heard of Dirvish? What this does is quite simple: - Create a new directory with hard links to all files in the previous dir - Copy over using rsync with some spec...
by _Cyber_
16 Feb 2021, 07:05
Forum: ESP Easy: Software
Topic: ESPEasy Backup script
Replies: 2
Views: 1276

ESPEasy Backup script

As I did not find any skeleton for a automated ESPEasy Backup script for its configuration I share here my working bash-script for doing this. Useable on linux hosts, as cronjob on daily basis e.g. it fetches config and rules*.txt from ESPEasy nodes, compresses the fetched files, checks for duplicat...
by _Cyber_
15 Feb 2021, 21:38
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

ok, I am now nearly there wehere I would like to be. I am keeping track with syssec_d when I start the timer. with this, I calculate the real time difference, not relying any more on timers called in time. especially the event queue seem to delay timers heavily. now three (hopefully last) question: ...
by _Cyber_
14 Feb 2021, 23:16
Forum: ESP Easy: General Discussion
Topic: rules question - variable not updated?
Replies: 11
Views: 5178

Re: rules question - variable not updated?

i am using 20210114 build. if it is not in that build than i still do not experience problems. looking at the system variables it seems to store the entire %unixtime% value me not. I am on 20210114 too: following codesnippet: Let,11,24 // shutter unixtime start event,ControlShutter=%eventvalue% end...
by _Cyber_
12 Feb 2021, 17:47
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

the losing track issue over time is corrected with the complete time for open or close action. there I do not drive only the difference, i always pulse the whole time to ensure it is closed / open completely. as at least one day a time it is closed completely it should not be noticeable, except the ...
by _Cyber_
11 Feb 2021, 13:45
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

drive down: enable overall power (GPIO2 to 0) Pulse one GPIO (4) to 0 for specific seconds keep one other GPIO (16) to 1 --> keep track of the seconds which it is pulsed and update (secondly, two-secondly) a HTTP host with the state in percent (if it delays too much update another ESPeasy host with ...
by _Cyber_
11 Feb 2021, 13:05
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

okay, I am despair of it. :-( Maybe also add a dummy (empty) on...endon block for events that will be generated but not handled by you in the rules. (e.g. system clock, new values of your tasks, etc.) That's why I already set the Single event with all values: and set the Interval to 600 seconds. but...
by _Cyber_
10 Feb 2021, 22:48
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

First thing to look at is how often do you call Rules#timer=7 and =8 ? Both call a SendToHTTP, which may take a while depending on the response time of the host. Timer7 is only called once, currently. Timer8 is set to the value to end in sync with the looptimer. so if I set the looptimer to 22 iter...
by _Cyber_
10 Feb 2021, 14:42
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

OK, that sounds like a bug or at least an undocumented feature... I will have a look at the order in which items are being replaced and also if I need to call it several times to replace all occurences in a single line. shall I open a issue on github regarding this? hm, so I have now compacted the ...
by _Cyber_
10 Feb 2021, 07:21
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

I just found out: if I assign the value before to a variable and use the Variable instead of the reference it works.

so, this works:

Code: Select all

 Let,11,[INT#%v67%]
 Let,%v68%,([VAR#64]+(100/[INT#60])*[INT#11])
 logentry,"VAR#v67=[INT#%v67%]"
by _Cyber_
10 Feb 2021, 07:01
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

moved now all VAR to INT which are supposed to have no floats, did not help. here is the code where I trigger the StateShutter calculate-event: on Rules#Timer=7 do Let,60,28 // full open/close duration Let,61,1 // Taskvalue Device Let,62,2 // Taskvalue Variable Let,64,=[SZ#S1] // Current shutter sta...
by _Cyber_
10 Feb 2021, 06:17
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

sorry, I forgot this to mention: in system variables I can see the vars filled correct: %v67% has 21 %v21% has 1 I tried with INT instead of VAR, does not change anything. and, for the logentry, it is is correct resolved, but not for the calculation. it is not resolved as 0.0 or 0, it is just "...
by _Cyber_
09 Feb 2021, 22:25
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

ok, now I have compacted the code and wrapped stuff in events which I call. I have now instead of 28kb rules only 14kb left. :D the rules are now unreadable. should not harm, as long as they are working. but, there is an issue, and, I was able to track it down, I cannot believe. 24777148: ACT : Let,...
by _Cyber_
09 Feb 2021, 13:14
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

running ESP_Easy_mega_20210114_normal_ESP32_4M316k

it's working with Let,10,=[Z1#S]

thanks - again on typing rules :D
by _Cyber_
09 Feb 2021, 12:56
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

this are all dummy devices, Output Data type is set to "Quad", Values are either 0 or 2 decimal. here the json; the "TaskName":"SZ" will be changed from 2 to 4 values. "Sensors":[ { "TaskValues": [ {"ValueNumber":1, "Name":"S...
by _Cyber_
09 Feb 2021, 12:39
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

I tried, but as soon as I have in rules e.g.

Code: Select all

 Let,10,[Z1#S]
 Let,11,[Z1#SL]
 Let,12,[Z1#SR]
 Let,13,[Z1#M]
ruleparsing stops and nothing happens. from the rules :-/
by _Cyber_
09 Feb 2021, 11:19
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

:shock: any ideas how I can circumvent? currently I have the following codeblock which is used 7 times identically with the following changing parts: [VAR#33] seconds Z1L requested [VAR#34] direction Z1L [VAR#35] Z1L shutters percent (loop)TimerSet_ms,2 will be (loop)TimerSet_ms,[VAR#XXX] two unshar...
by _Cyber_
09 Feb 2021, 07:34
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

And maybe you can make a single event handler to avoid a lot of code duplication? For example you can create small event wrappers to call the generic one with a few more arguments. In those arguments you can then add some info as to in what variables you store states. For example "[VAR#13]&quo...
by _Cyber_
08 Feb 2021, 16:13
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

@TD-er may I ask, how long are single events allowed to block until the unit reset? e.g. the following part of rules: logentry,%syssec% event,ControlZ1L=[VAR#2] logentry,%syssec% event,ControlZ1R=[VAR#2] logentry,%syssec% gives me output: 18249531: ACT : logentry,'Z1SL=11.00 and Z1SR=78.00 not in sa...
by _Cyber_
08 Feb 2021, 06:38
Forum: ESP Easy: Software
Topic: granularity of TimerSet_ms differs by 10%
Replies: 5
Views: 1565

Re: granularity of TimerSet_ms differs by 10%

thanks, got it. :-)

BR
Alois
by _Cyber_
06 Feb 2021, 15:27
Forum: ESP Easy: Software
Topic: granularity of TimerSet_ms differs by 10%
Replies: 5
Views: 1565

Re: granularity of TimerSet_ms differs by 10%

:!: awesome :!: with looptimer the difference between the 28seconds (not ms) timer and the looptimer,1000,28 is ... 1ms. :D the timerpart of the rules is now also shorter with looptimer: on Rules#Timer=7 do //[VAR#20] seconds requested; [VAR#21] direction; [VAR#22] shutter percent logentry,%eventval...
by _Cyber_
04 Feb 2021, 21:36
Forum: ESP Easy: Software
Topic: cold boot / reset detection with dummydevice not working
Replies: 8
Views: 1914

Re: cold boot / reset detection with dummydevice not working

have tried now several times - it always says " INIT : Cold Boot", it doesnt matter if i reboot it with the button in web interface or I reboot it with the EN button on the device. here is a hardware button "EN" push log: ets Jun 8 2016 00:22:57 rst:0x1 (POWERON_RESET),boot:0x13 ...
by _Cyber_
04 Feb 2021, 18:25
Forum: ESP Easy: Software
Topic: granularity of TimerSet_ms differs by 10%
Replies: 5
Views: 1565

Re: granularity of TimerSet_ms differs by 10%

Thanks, will try looptimer. Looks like it is an alternative.

Best regards
Alois
by _Cyber_
04 Feb 2021, 17:20
Forum: ESP Easy: Software
Topic: granularity of TimerSet_ms differs by 10%
Replies: 5
Views: 1565

granularity of TimerSet_ms differs by 10%

Hi, I am using ESP_Easy_mega_20210114_normal_ESP32_4M316k on a ESP32. in the following rule I start the event "ControlSZ=0". It pulses two GPIOs with LongPulse for 28 seconds. In parallel I start a timer (already with TimerSet_ms as the difference without _ms was bigger), set a variable to...
by _Cyber_
02 Feb 2021, 06:11
Forum: ESP Easy: Software
Topic: cold boot / reset detection with dummydevice not working
Replies: 8
Views: 1914

Re: cold boot / reset detection with dummydevice not working

not in this one, I set it in another part of the rules, as soon as I did some action and I am sure I know the state of the dummydevices: on Rules#Timer=8 do if [Z1#M] = 0 and [Z2#M] = 0 and [Z3#M] = 0 and [SZ#M] = 0 logentry,"No Movement, Power off" gpio,2,1 TaskValueSet,5,1,-1 else logent...
by _Cyber_
01 Feb 2021, 22:21
Forum: ESP Easy: Software
Topic: cold boot / reset detection with dummydevice not working
Replies: 8
Views: 1914

Re: cold boot / reset detection with dummydevice not working

Boot#watcher is device 5.

I want to determine if the values were preserved and therefore I can trust them (values 0-100 on device 1 to 4) or if there was a boot and reset of all dummydevice values.
by _Cyber_
01 Feb 2021, 22:00
Forum: ESP Easy: Software
Topic: cold boot / reset detection with dummydevice not working
Replies: 8
Views: 1914

cold boot / reset detection with dummydevice not working

Hi, I am using ESP_Easy_mega_20210114_normal_ESP32_4M316k on a ESP32 I am trying to determine, if a boot is a cold boot (where all dummydevices come with 0 values) or a reboot (where the dummydevices are preserved). on System#Boot do if [Boot#Watcher] = 0 TaskValueSet,1,1,-1 TaskValueSet,2,1,-1 Task...
by _Cyber_
29 Jan 2021, 16:34
Forum: ESP Easy: Projects / Applications
Topic: ESP Conrol Brinks WTW
Replies: 7
Views: 2433

Re: ESP Conrol Brinks WTW

yes, I read regularly the EWT status and depending on it, I put in summer the floor cooling into active state. but, besides this, no. :-) btw: brink itself offers the way to put a humididy sensor into the unit, cable it to the unit and then the fan speed control is done by the brink unit iself. But ...
by _Cyber_
29 Jan 2021, 16:25
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

using asyncevent solved the issue. :-)
by _Cyber_
29 Jan 2021, 10:50
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

Re: ESP32 resets on rules processing

asyncevent: will try this, thanks. :-) the avoiding code duplication is on my list, I will try to make completely rules 2, 3 and 4 into one ruleset. thanks for the hints with substituting variable numbers with variables. :-) the delay: I have already all possible 8 timers in use, over the 4 rulesets...
by _Cyber_
28 Jan 2021, 22:37
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 3855

ESP32 resets on rules processing

hi, If I call by http an event it is done partially, during the processing the esp32 reboots. :-( here is a log of it. the log is from web, I do not know if it is complete. 91244: Dummy: value 1: -1 91246: Dummy: value 2: 0 91247: Dummy: value 3: 0 91249: Dummy: value 4: 0 91265: EVENT: Z2#All=-1,0,...
by _Cyber_
20 Jan 2021, 12:05
Forum: ESP Easy: Projects / Applications
Topic: ESP Conrol Brinks WTW
Replies: 7
Views: 2433

Re: ESP Conrol Brinks WTW

the ebus connection is done in my case with an ebus-usb-adapter. I soldered the one from here: https://www.mikrocontroller.net/topic/346833?page=single there are also other projects around how to make your own ebusd adapter, cheaper and direct with wifi, with a wemos D1. e.g. https://ebus.github.io/...
by _Cyber_
14 Jan 2021, 22:17
Forum: ESP Easy: Projects / Applications
Topic: ESP Conrol Brinks WTW
Replies: 7
Views: 2433

Re: ESP Conrol Brinks WTW

here is another solution for brink units: I have a wemos d1 with a dht22 in bathroom. it measures on 5 minutes basis the humidity and does a GET request to a raspberry. this raspberry has a ebus connection to the brink unit and sets via ebusd the fan speed of stand 1 dynamically between 50m³/h and t...
by _Cyber_
29 Dec 2020, 10:03
Forum: ESP Easy: General Discussion
Topic: releay bounce at boot
Replies: 20
Views: 4931

Re: releay bounce at boot

after disabling the switches relating to the relays (gpio 12 and 5), there is no bounce at start-up, but there is no control with Home Assistant. Moreover when restarting the relays are always closed and I want them open. I would try to control the relays with gpio only, not with the switch device ...
by _Cyber_
28 Dec 2020, 17:17
Forum: ESP Easy: General Discussion
Topic: releay bounce at boot
Replies: 20
Views: 4931

Re: releay bounce at boot

maybe this: https://github.com/letscontrolit/ESPEas ... -729524772

Try to deactivate your "Switch input" devices bound to the GPIOs which you are using in rules.
by _Cyber_
28 Dec 2020, 17:11
Forum: ESP Easy: Hardware
Topic: which gpio for push buttons on wemos d1 and multiple push questions
Replies: 1
Views: 3233

which gpio for push buttons on wemos d1 and multiple push questions

hi, I am on playing with shutters, I want to completely control it with espeasy devices. while the shutter motor control is located in the electrical main distributor (wit relay-shields and ESP32) and is clear how I do it, I am not sure with the buttons in the room. I want to use the already existin...
by _Cyber_
14 Dec 2020, 17:57
Forum: ESP Easy: General Discussion
Topic: rules question - variable not updated?
Replies: 11
Views: 5178

Re: rules question - variable not updated?

thanks. :-)
exchanged to %syssec_d% and everything is working as expected. :-)

BR
Alois
by _Cyber_
14 Dec 2020, 14:33
Forum: ESP Easy: General Discussion
Topic: rules question - variable not updated?
Replies: 11
Views: 5178

rules question - variable not updated?

hi, I am trying to set up a time and pulses counting mechanism for a GPIO state. have currently the following rule: On System#Boot do Monitor GPIO,2 timerSet,1,30 Let,1,0 // counting seconds Let,2,0 // GPIO state Let,3,0 // counting pulses Let,4,0 // unixtime last secondcalculation endon On Clock#Ti...
by _Cyber_
18 Nov 2020, 21:04
Forum: ESP Easy: Projects / Applications
Topic: rules: send GPIO state by HTTP parameter
Replies: 2
Views: 5672

Re: rules: send GPIO state by HTTP parameter

this works. thanks. :-)

that's why I made this feature request: https://github.com/letscontrolit/ESPEasy/issues/3375 :-)

thanks for your work and your responsiveness @TD-er

Best regards
by _Cyber_
18 Nov 2020, 20:07
Forum: ESP Easy: Projects / Applications
Topic: rules: send GPIO state by HTTP parameter
Replies: 2
Views: 5672

rules: send GPIO state by HTTP parameter

hello, I am using ESP_Easy_mega_20201102_normal_ESP8266_4M1M on a wemos d1, on GPIO5 I have attached a wemos relay shield. I am struggling with rules. who can help me finishing the last parameter, the GPIO state, of the http request? On System#Boot do timerSet,1,10 endon On Rules#Timer=1 do SendToHT...