Page 1 of 1

Any news to use a Switch/Dimmer with 50Hz input

Posted: 08 Apr 2021, 13:29
by Micha_he
I have not noticed all the ESPEasy-changes in the last months...

Are there any news on making a 50Hz-input workable with ESPEasy, without modify the circuit with a electrolytic capacitor? As used e.g. by MOES-switches input's.

Can we configure the switch-input-plugin (or modify the source-code), so that we get the following behavior:

1. When the signal at the input changes to 1 with a 50Hz frequency, we get a constant 1 result (only a single event).
2. If the signal falls to 0 for a period of xxx ms, then the internal result switch back to 0.

In summary: A delay only in the direction from 1 to 0.

The pulse-counter-plugin wasn't a solution in the last test (~ one year ago), because ESPEasy always crashed with the high count of pulses.
I'm searching for a solution, to use a mini-dual-switch (e.g. like this one), with dual-channel input and would like to stay with ESPEasy :)

Re: Any news to use a Switch/Dimmer with 50Hz input

Posted: 08 Apr 2021, 13:36
by TD-er
Pulse counter is capable of counting quite high frequencies these days.
So what you can do is set this to an interval of 1 sec and check the counted value.
If it does no longer increase, you can conclude the frequency was no longer present.

Re: Any news to use a Switch/Dimmer with 50Hz input

Posted: 08 Apr 2021, 13:39
by Micha_he
Does the pulse-counter only generate an event on the interval setting or on every change ?

Re: Any news to use a Switch/Dimmer with 50Hz input

Posted: 08 Apr 2021, 13:42
by TD-er
I think (!!) it is only on the interval as it is impossible to process > 20-ish events per second and people have reported to be able to count > 200 Hz signals. (reported counting of 12'000 rpm motor)