Device, Enabled - deactivates itself

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
daedalus_09
New user
Posts: 3
Joined: 04 Feb 2020, 22:13

Device, Enabled - deactivates itself

#1 Post by daedalus_09 » 04 Feb 2020, 22:26

Hello, ESP Easy experts,

I've recently been getting my house a little smarter. I've been flashing some Sonoff units with Tasmota. And since about 2 weeks I'm using
ESPEASY (Vers.:Mega-20191208) file: [ESP_Easy_mega-20191208_normal_ESP8266_4M1M.bin] flashed on a NodeMCU board.
So far it all works.

Only with Device the switch "Enabled" deactivates itself automatically after a few days. I use a HALL sensor for a project "Gasmeter".
This was selected as "Generic - Pulse counter".
If enabled is active, then the counter counts correctly. As soon as the enabled switch is deactivated, there are problems. And therefore the gas meter is not correct.

If I set enabled active and then press submit, I also get a confirmation.
Even if I do a reboot everything is IO at the beginning.

Only the next day or the day after next the switch deactivates itself.

Which experiences do you have?
How can I set the switch "Enabled" correctly?

I would be happy to hear about your experiences and tips.

Have a nice evening and a successful week

Dieter

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Device, Enabled - deactivates itself

#2 Post by TD-er » 04 Feb 2020, 22:37

What GPIO pin do you use?
What position in the task list do you use for this plugin?

About disabling tasks/controllers.
If a module reboots > 10 times before it could complete a boot, it will start disabling tasks and controllers until it is successful in booting.
So if the task is disabled, it means it was probably the task that prevented the unit to boot.

daedalus_09
New user
Posts: 3
Joined: 04 Feb 2020, 22:13

Re: Device, Enabled - deactivates itself

#3 Post by daedalus_09 » 04 Feb 2020, 23:17

Thanks for the quickly answer.

I use the following: NodeMCU LolinaV3.

I use the first position in the task site.
And I use GPIO14 (D5)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Device, Enabled - deactivates itself

#4 Post by TD-er » 05 Feb 2020, 09:35

Is it possible this Hall-effect sensor is sometimes in a position where it is triggered continuously? For example when the position of the magnetic dial is exactly between 'triggered' and 'not triggered' ?
Then the pulse counter may have to process lots and lots of interrupts and crash. Maybe even crash before it can complete a boot cycle.

daedalus_09
New user
Posts: 3
Joined: 04 Feb 2020, 22:13

Re: Device, Enabled - deactivates itself

#5 Post by daedalus_09 » 09 Feb 2020, 19:40

yes, it's possible. But why is he crashing?

Do I need to change the times for
Debounce Time : (currently 1000ms)
or
Interval: (5sec)?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Device, Enabled - deactivates itself

#6 Post by TD-er » 09 Feb 2020, 21:27

A debounce time of 1000 msec may limit the max. number of pulses to 1 per second (or even less).

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 32 guests