Page 1 of 1

Rules: only send MQTT if value > 0.

Posted: 31 Oct 2016, 18:45
by JR01
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 ?