Hi, background:
I am using node-red for my smart home since some years with basic features and just started to dig deaper
story:
water in the cellar - drain pump was ok - inflow was stuffed with mud
Now as we had water in the cellar because the drain pump was not getting anything to pump because it was blocked just before it - the alarm for pump failing which is allready monitored - did not throw an alert
So what I wanted since a long time: ideas and logic
check how often the pump is running
(under different scenarios like winter/rain/summer
generate something like a "running-factor" per day
create limits and set different alarms ...
technical question:
I allready log the pump through a power monitor and get values like this (time is not attached yet but that is in my scope of capabilities
What would be the easiest way to collect those values (as long as the pump is running - some seconds only) I want to save this as a "run" with "start-time" and "run-time".
(For long time checks I will log it in a txt file and in an influxdb for later analysies)
But how could I create something like a round robin list for a day?
Is there a build in feature like this (or should I just use a function node to code that - I guess I could manage this)
0
0
0
0
68.3
66.11
64.79
40.5
0
0
0
I guess this could be quite interessting for anybody with a device that is not constantly up and running with no directly other connected paramters which can be controlled.
I think @gerry has a good point. Any time that you want to be sure that something is working correctly then fully independent alarm detection is the ideal solution.
Thank you for this tip - I didnt want to write too much in my initial post - the water level monitor is just 15cm near the pump - the amount of water which was stopped in the chimney within the wall - was soaked up by the bricks and just showed up after 2 weeks or so. The screed is only "not dry" and showed same salt extractions - but it is not "wet" enough to start the water monitor - which is totally ok and working.
The amount of liquid that "drops" from the chimney is in my opinion even too small to use a mechanical flow meter - and the water contains small parts of ashes so I guess it would break the thing over time. Good electrical inductions sensors would be a different scope and project and I am not the perfect bread board designer ...
How is the pump powered? You should find readily available power monitors. From that you can compile all sorts of data to help you with monitoring/automation.
If you are already using InfluxDB, wouldn't that be the answer to the data question? Throw them into InfluxDB and then you can use it's timeseries calculation capabilities.