Folks, i monitor the consumption of my washing machine, and when it drops below 25 watts for a fixed amount of time, i have a notification sent that its in crease protection and again when it goes below 10 that its ready.
well that also happens each time i restart the HA instance, since then its so many minutes under 25 watts. and usually i work on it late at night and the very best wife is more than slightly annoyed by those false alarms while shes mostly trying to go sound asleep
how do i monitor for the average consumption over the past 20 minutes being above a given threshold?
the sensor is a Nous A1 wifi mqtt tasmota plug that also could switch but is not used for switching, only for measuring.
kind of if the 20 min average is above 500 watts cock the notification trigger, if it goes below 25 watts pull the notification trigger, but only fire when it was cocked beforeā¦
thanks.
hm, i took a look at the history, and i cant do that as the washing machine hikes up and down many times during the washing process. e.g. while it heating its way up and while its soaking it basically zero, hence i have had a time limit for it to be under 25watts for a certain amount of time, (longer than the soak timeā¦)
If i want to improve i have to have an average over a certain amount of time, then i could make a trigger if that goes from [above] to [below]
so I would like to clarify my question:
how do I make a trigger that goes from [above] to [below]
how do I get an average from an every 10 seconds reporting wifi mqtt sensor
A different approach.
It seems you get these false alarms because or when the washing machine is not running for real?
So what about first detecting that it is on and set a boolean to true. (above 100 w or something)
This boolean is then your condition in the notification automation.
I use a binary sensor that turns on, if power consumption goes above defined threshold (10 Watts). I use that binary sensor in an automation. A signal is sent if consumption falls below threshold for 5 minutes.
I donāt say, that this the easiest solution, but I donāt face false alarms.
Thats a really elegant solution - I went another route with in total three helpers - two number values to determine the kWh and one to sort out fales negatives during the washing cycle.
The value give at the end is the same as my Energy dashboard shows me (currentyl tests three times)
how ever, do one really wants to know how much energy the washing machine is using? one could get scared at the current energy prices and by this one may start to get a bit more smelly.
ROFL
For me, I use mostly solar power, so I honestly dont care, same goes for water, I use 100% rainwater, and its still enough in the cistern to water the garden and even fill up the pool when necessary, I really dont care.
We havent run dry in years, and we feed a house with 6 grownups and 7 kids. Lots of washing, lots of toilet-flushings, big garden, regular pool refills from splash water, washing cars etc. pp.
So, the only thing I care is, is my cloth clean from grease and dirt as well as free from soap and it should be fast. I work mechanically, I cook all my work cloths, I change them at least every day. Thats 3 Machines a week for me alone. Hence I want it fast. 60mins for a 95Ā°C cooked machine with no prewash but with extra rinse. I only have one machine thats slower. its the newest, Bosch, and I wont go buy an other one of those new slow crapy green machines, I go with old Mile, good results, fast and reliable for decades.
In most countries washing the car where the water ends up in rivers, lakes or oceans is illegal.
You would need the water to go to a drain inside the house that goes to a treatment plant.
And your 60 min washing programs are not the best.
There is a reason why washing machines and dishwashers takes hours these days.
They clean the clothes or dishes the same way you would do it, by letting it soak in water and letting the water do the hard work.
The shorter programs relies more or mechanical cleaning which uses more energy and wears the clothes more.
Thereās not much point in me expanding on this unless you use node-RED, but just in case you do there is a neat contrib node that allows you to create a āstate machineā as the washing machine goes through its various phases. Using a regular entity state node you measure how long a given level of consumption is detected e.g. low, medium, high and depending on the previous machine state you can infer the new state.
thats neat, would have made so much so much easierā¦ I just wonder why in years of FHEM and HA I never stumbled over that add-on.
I really do miss the Siemens PLC language FUP, that is so easy, still runing an S5 in my basement for some stuff. I never understood why all those Home Automation Guys made it so much more difficult.
Well, thanks @hunterdrayman
I for sure try that one out.
@m0wlheld, I have the energy dashboard deactivated I did pay for that second layer on my roof and the big battery a lot of money, therefore now, I dont pay any money any more, asside from the hail insurance for that stuff. 100% self sufficient. The 600l rapeseed oil I use in my BHKW during the winter to bolster the battery, grow on my own land, well I leased it to a farmer and he pays me in rapeseed oil, as I myself would need to rotated the fruits to keep the ground in good shape, and could not grow rapeseed every year, also would need to bother with Berufsgenossenschaft and keep all the hardware to run the āfarmingā, naa. Therefore I just dont care how much we consume, we got plenty enough to run bitcoin miners 10 months a year with the surplus energy. And at 9ā¬ per day (0,6 cent per min) I dont care if miners runs a bit more or not. I just rather make some bitcoin and use the waste heat in my house than just dumping the surplus energy into heating water with a heating element, its basically the same, just without the 9ā¬ gain per day.
@Hellis81 indeed your right, if you wash delicate stuff, absolutely, go with the slow washing. However, my work cloth seldom gets older than a few months, a year max, due to ripping tearing and other stuff like welding burn-holes and such. So who cares if the fast washing eats that cloth? For me clean and fast is all I care.
Hi,
Iām āhijackingā this thread, since I am thinking on creating something similarā¦ but ā¦ before I just start to do an automation with the notification, I would like to start creating a template with the current state - similar to what @hunterdrayman did with node redā¦
But - I would like to try it without the usage of noderedā¦
I am asking myself, if it could be possible to create a template sensor with such states based on this patternā¦
The part of my node-RED flow that youāre referring to is embodied in the state nodes. Below is one of them. Basically each is saying āif an HA state holds for time t emit trigger Xā. This is the easy bit and Iād expect that to be possible in an automation. The interplay of many triggers and many machine states is the complicated bit. I think this will be difficult to replicate in a template but I would be delighted to be proved wrong.
Youāre right about other washing machine programmes messing things up, as I find out every so often when my wife uses a different one or when the machine objects to an excess of suds!