Hi,
I have a question. Maybe a noob question but I am not able to solve the problem by myself.
I got a value via mqtt in my node-red flow every second. I want to publish it again but not every time I receive one. I only want to pass on/publish the value if it has changed by at least 50.
How can I achieve this goal?
[{"id":"2584687fee6166c8","type":"tab","label":"Huawei input","disabled":false,"info":"","env":[]},{"id":"97e7328d5072a82a","type":"mqtt in","z":"2584687fee6166c8","name":"electricity meter","topic":"sensors/display/solar","qos":"0","datatype":"json","broker":"f839540e.7b7858","nl":false,"rap":false,"inputs":0,"x":420,"y":400,"wires":[["ebbd2f03875511e3","29c733b699d3db05"]]},{"id":"29c733b699d3db05","type":"debug","z":"2584687fee6166c8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":880,"y":500,"wires":[]},{"id":"ebbd2f03875511e3","type":"mqtt out","z":"2584687fee6166c8","name":"publish to L1L2L3","topic":"Huawei/Huawei_d37c92/L1L2L3","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"f839540e.7b7858","x":890,"y":400,"wires":[]},{"id":"f839540e.7b7858","type":"mqtt-broker","name":"","broker":"192.168.178.44","port":"1883","clientid":"clientid","autoConnect":true,"usetls":false,"compatmode":false,"protocolVersion":4,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]