Rules: only send MQTT if value > 0.

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

Rules: only send MQTT if value > 0.

#1 Post by JR01 » 31 Oct 2016, 18:45

Hi, I have a water meter, where data goes via MQTT to NodeRed, they have a great Dashboard, where I send the total water used for the day to a gauge - chart. To get almost intime gauge information, I set ESP to send the mqtt message every 60s. Problem is, most of the day, the water used for the last 60s is zero, then a zero is sent to mqtt.

Any way to use a rule, to first check if the value is > 0, and only then to send it through mqtt ?
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

Post Reply

Who is online

Users browsing this forum: No registered users and 92 guests