Node Red ignore fluctuating values

I have a state node that sends a battery entity if it’s value is below 10%.

Some of my battery sensors fluctuate A LOT eg between 10% and 9% and trigger the following notification node way to often.

How can I filter these fluctuations?

Note: the state note sends ALL battery entities if their below 10%

The delay node has a setting to limit the number of messages.
You could probably set it to send once a day or something.

Are you sure it fluctuates only from 10 to 9? Depending on how you build your flow it’ll notify you every time the value is below 10. That is, from 9 to 8, from 8 to 7, and so on. If you want it to notify only when it goes from above or equal10 to below 10 you should filter that.

[{"id":"762b3139.8cbbe","type":"switch","z":"ebd7f2e4.a2afc","name":"old state >= 10?","property":"data.old_state.state","propertyType":"msg","rules":[{"t":"gte","v":"10","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":470,"y":900,"wires":[["c3883c94.1a04b"]]},{"id":"c3883c94.1a04b","type":"switch","z":"ebd7f2e4.a2afc","name":"new state < 10?","property":"data.new_state.state","propertyType":"msg","rules":[{"t":"lt","v":"10","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":660,"y":900,"wires":[["97efca33.232868"]]},{"id":"772a9c84.3aad74","type":"server-state-changed","z":"ebd7f2e4.a2afc","name":"Batteries","server":"9405c3fe.d0a6c","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"your_batts","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"num","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"data","propertyType":"msg","value":"","valueType":"eventData"}],"x":300,"y":900,"wires":[["762b3139.8cbbe"]]},{"id":"97efca33.232868","type":"api-call-service","z":"ebd7f2e4.a2afc","name":"Notify","server":"9405c3fe.d0a6c","version":3,"debugenabled":false,"service_domain":"","service":"","entityId":"","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":820,"y":900,"wires":[[]]},{"id":"9405c3fe.d0a6c","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]