Search found 115 matches

by _Cyber_
16 Feb 2021, 17:49
Forum: ESP Easy: Software
Topic: ESP32 resets on rules processing
Replies: 47
Views: 18906

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: 3819

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: 3819

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: 18906

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: 9933

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: 18906

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: 18906

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: 18906

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: 18906

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: 18906

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: 18906

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: 18906

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: 18906

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: 18906

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: 18906

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: 18906

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: 18906

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: 18906

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: 18906

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: 18906

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: 4100

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: 4100

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: 4903

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: 4100

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: 4100

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: 4903

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: 4903

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: 4903

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: 11
Views: 10454

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: 18906

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: 18906

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: 18906

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: 11
Views: 10454

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: 11
Views: 10454

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: 9731

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: 9731

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: 7282

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: 9933

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: 9933

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: 10617

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: 10617

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...
by _Cyber_
17 Nov 2020, 10:39
Forum: ESP Easy: Projects / Applications
Topic: Command unknown: "relay,0,2"
Replies: 6
Views: 11640

Re: Command unknown: "relay,0,2"

yes, the relays do work flawless, only the output puzzled me.

I have subscribed to the issue, will ignore the output and and will test as soon as it is fixed.

Thank you!

Best regards
Alois
by _Cyber_
17 Nov 2020, 09:00
Forum: ESP Easy: Projects / Applications
Topic: Command unknown: "relay,0,2"
Replies: 6
Views: 11640

Re: Command unknown: "relay,0,2"

sorry ath, I do not understand your reply. the relay is not connected to a GPIO, it is on a relay shield where a MCU is on. espeasy controlls the MCU by serial rx / tx commands. why do I need now a dummydevice? I thought the plugin is the one from https://www.letscontrolit.com/forum/viewtopic.php?f=...
by _Cyber_
15 Nov 2020, 17:19
Forum: ESP Easy: Projects / Applications
Topic: Command unknown: "relay,0,2"
Replies: 6
Views: 11640

Command unknown: "relay,0,2"

hello, I am using P091 with ESP_Easy_mega_20201102_test_ESP8266_4M1M.bin. relays do work, but I can see in log: 916833: HTTP: relay,0,2 916839: Command unknown: 'relay,0,2' 916850: Domoticz: Sensortype: 7 idx: 10 values: 1;0;0;1 916856: SerSW : SetSwitch r0:1 916866: EVENT: WohnzimmerRelays#Relay0=1...
by _Cyber_
08 Apr 2020, 13:56
Forum: ESP Easy: Software
Topic: Serial MCU controlled relay/switch
Replies: 459
Views: 1114857

Re: Serial MCU controlled relay/switch

damn - now it is merged into espeasy mega mega and you throw them away? o_O mine is still working flawless, have a punch of them lying around and waiting for them to get a job in my environments. :D before I bought the 4-relay thing I took a look at the shelly. sadly they were not appliciable for me...
by _Cyber_
18 Mar 2020, 13:40
Forum: ESP Easy: General Discussion
Topic: ESP Easy Mega MQTT issues
Replies: 6
Views: 7083

Re: ESP Easy Mega MQTT issues

@TD-er no I am using mega-20190805 I did not install the testbuild, there is a comment the build only returns text: https://github.com/letscontrolit/ESPEasy/issues/2892#issuecomment-587071587 If there are other test-builds you would like to have verified just tell me (or better send me a link to the...
by _Cyber_
18 Mar 2020, 10:58
Forum: ESP Easy: General Discussion
Topic: ESP Easy Mega MQTT issues
Replies: 6
Views: 7083

Re: ESP Easy Mega MQTT issues

according to the table here https://www.letscontrolit.com/wiki/index.php?title=GPIO#Commands MQTT should work. also the overall command reference here https://www.letscontrolit.com/wiki/index.php/ESPEasy_Command_Reference tells me for GPIO "Plugin" : Plugin - Can be run from serial, rules ...
by _Cyber_
16 Mar 2020, 18:58
Forum: ESP Easy: General Discussion
Topic: ESP Easy Mega MQTT issues
Replies: 6
Views: 7083

Re: ESP Easy Mega MQTT issues

thank you. :-) any hints for the mqtt issue? Thanks! Alois BTW: it drives me crazy. have tried now (feels like) 100 approaches and none is working. https://www.letscontrolit.com/forum/viewtopic.php?t=320 https://www.letscontrolit.com/forum/viewtopic.php?t=5642 https://www.letscontrolit.com/forum/vie...