Hi everyone,
I'm working on a Node-RED automation to send notifications when certain devices finish their tasks. For example, I want to get a push message when my washing machine is done.
Currently, I have a flow that triggers if the power consumption stays below 100 watts for at least one minute. However, after completing a cycle, the washing machine idles with a power usage between 0 and 1 watt. This causes the flow to incorrectly send "your device is finished" notifications whenever the consumption fluctuates within that range, even if the machine hasn't been used for days.
I'd like to add a condition to ensure the device was actively running before sending a notification. This would involve checking if the power consumption exceeded 100 watts for more than one minute and then dropped below that threshold for more than a minute. However, this approach seems overly complex.
Is there a simpler solution?
Thanks!