Rules: only send MQTT if value > 0.
Posted: 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 ?
Any way to use a rule, to first check if the value is > 0, and only then to send it through mqtt ?