Search found 4 matches

by andreruiz
28 Feb 2024, 14:18
Forum: ESP Easy: General Discussion
Topic: Button event is issued when you save settings with status reset to 0
Replies: 4
Views: 1278

Re: Button event is issued when you save settings with status reset to 0

I see. I'll keep using this for the moment then, and I'll keep an eye on this for future changes.

Thank you!
by andreruiz
27 Feb 2024, 21:20
Forum: ESP Easy: General Discussion
Topic: Button event is issued when you save settings with status reset to 0
Replies: 4
Views: 1278

Re: Button event is issued when you save settings with status reset to 0

Ok, after I explained the issue I think I found a solution. This code works and solves both problems at the same time (confirming that the boot issue was the same issue as saving the configuration in the web). It avoids the initial event right after the button task is (re-)initialized, at any moment...
by andreruiz
27 Feb 2024, 20:39
Forum: ESP Easy: General Discussion
Topic: Button event is issued when you save settings with status reset to 0
Replies: 4
Views: 1278

Re: Button event is issued when you save settings with status reset to 0

Another thing that I just realized is that with that code I was having a relay toggle (to on) at boot time, probably because an event is also being emitted at TaskInit and triggering that rule. I got rid of that using a timer that will prevent acting on any events for button for a few seconds after ...
by andreruiz
27 Feb 2024, 20:13
Forum: ESP Easy: General Discussion
Topic: Button event is issued when you save settings with status reset to 0
Replies: 4
Views: 1278

Button event is issued when you save settings with status reset to 0

Hello all, I'm trying to configure Rules to achieve what I'll describe below, and while doing that I found a strange behavior that I want to confirm. I'm using a sonoff basic r2, with mega-20231225 and my goals are: I want to be able to toggle a relay when I press the button. I want to be able to to...