I am new to everything
New to Home assistant and new to this forum.
I have a problem concerning automation and cannot believe that i seem to be the first who has this kind of problem, but if not i am just not able to use the right search words…
So my problem is:
I have two adapters from Laudrify (i bought them before using Home assistant). The have only the states “running” and “not running”. I wanted to make a notfication via telegram after the dryer or the washing machine is ready (not running). So simple as that i made a automation:
When dryer not running
send notifiation
Fine. Later this night i got a message every 7-10 minutes saying my dryer is done.
And logically HA is right. Every time he’s checking the state, the dryer is not running so he has to send a notifcation.
So i tried a lot of stuff and currently i think my only solution are templates. Here i’d be able to check if the state has changed from running to not running.
I think this can be done by the variable this (Automation trigger variables - Home Assistant)
But honestly i am just too dumb to understand how to use it
My intention would be to just the write the state of the adapter to an variable (e.g. every 10 minutes) and just compare the current value with the last saved value. if the state has changed when the automation “not running” has started, then a notifcation should be send.
Probably this may need an helper, but there is my entity dryer not available…
All in all i am lost and don’t know what to do (or how) and cannot believe that i am unable to google this problem or that nobody had the same problem before… (in this case i’d also be grateful for someone showing me somebody with a similar problem )
Thanks a lot
wasty
P.S.: Unfortunately (?) i am from Germany. so a screenshot or so from my automation won’t help a lot of people…
Post your automation (not a screenshot, but properly formatted as per the forum guidelines, between three backticks) and I think the German won’t be much of a problem.
If you use a timed check, that is most likely the problem. There are examples for detecting when a dryer is done, probably some blueprints too.
Most check when power usage is low for a certain amount of time. But in your case, a state condition detecting when the state changes from running to not running will probably do just fine. If that happens periodically then an extra for clause to say now long it must stay not running for it to trigger may also be of use.
Thanks! I’ll try this.
Meanwhile i had a power down and no internet and everything for a very short while and i tried my luck with the pages i had already open (which was template).
Do you think this template would also solve my “mystery”?
one more question, and again i am totally clueless…
How can i measure the time these sensors spent running and write it into my message.
I tried it with a helper (i created a timer helper and tried to trigger its starts with the mode change), but i cannot find a call for the helper (i could only trigger for it).
Also i found that