i would do an extra check on the time to skip that bounce
first on the pulsecounter device deselect send to controller and put interval to 1 second
Then you need to know what your fastest good pulse is going to be
eg if your fastest pulse is 2000ms then do a test that the pulse received is a good pulse a bounce will probably be faster)
to be save do acheck on anything slower then 1500
i did this with my watermeter and sofar no missing pulses or bounces/jitters
on stromzaehler#Count do
If [stromzaehler#Count]>0 and [stromzaehler#Time]>1500 //only send if there is a pulse and it is no bounce/jitter
Publish %sysname%/Counter,[stromzaehler#Count] //publish counter value
Publish %sysname%/CounterTime,[stromzaehler#Time] //publish time between pulses to avoid jitter or false pulses
EndIf
endon
i use this to send to domoticz in case you use domoticz as well (idx=idx of counter device in domoticz)
Publish domoticz/in,'{"idx":337,"nvalue":0,"svalue":"1"}'