Pulse counter problem

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
mgennip
Normal user
Posts: 22
Joined: 17 Jun 2016, 19:22

Pulse counter problem

#1 Post by mgennip » 29 Oct 2016, 17:59

I have set a pulse counter on GPIO12, it works fine, 'total' shows the amount of pulses.

When using the formula option, this does not work. For example %value%+2 does not have any effect on the 'total' value.

Is this a bug or am i doing something wrong? I am using release R120

Using formula on (for example) DS18B20 as temperature sensor works fine.
Last edited by mgennip on 30 Oct 2016, 18:45, edited 1 time in total.

Martinus

Re: Pulse counter problem

#2 Post by Martinus » 30 Oct 2016, 10:44

mgennip wrote:I have set a pulse counter on GPIO12, it works fine, 'total' shows the amount of pulses.

When using the formula option, this does not work. For example %value%+2 does not have any effect on the 'total' value.

Is this a bug or am i doing something wrong?

Using formula on (for example) DS18B20 as temperature sensor works fine.
The pulse device has always shown the internal counters and this has never been changed.
The values reported to the controller and event engine should however reflect the calculated values used in formulas.

mgennip
Normal user
Posts: 22
Joined: 17 Jun 2016, 19:22

Re: Pulse counter problem

#3 Post by mgennip » 30 Oct 2016, 17:50

I think there is an error in the pulse plugin. I can't get the formula option working.

I am using release 120.


BTW. Pulse on GPIO16 does not work.

BobS
Normal user
Posts: 15
Joined: 18 Jan 2016, 21:29

Re: Pulse counter problem

#4 Post by BobS » 30 Oct 2016, 18:27

The formule option works but the %value% refers to the Counter and not to the Total.

mgennip
Normal user
Posts: 22
Joined: 17 Jun 2016, 19:22

Re: Pulse counter problem

#5 Post by mgennip » 30 Oct 2016, 18:38

%value%+2 does not have any effect on Total nor on Counter displayed at webpage.

%value%+2 works only on transmitted data to controller. For example domoticz does receive the correct (+2) total value.

Post Reply

Who is online

Users browsing this forum: No registered users and 104 guests