I meter almost all electic devices like: heatpump, waterheater, washingmachine, dryer, refigirator, freezer, office and multi media equipment, heating for my car (gets cold in Norway). Lights are measured via powercalc, small stuff like usb power plugs have to be put in powercalc
I used one for my projector to see if it's on or not so I can turn it off when we leave the home or turn it on when I ask for it with a broadlink RM, I use also one for my airconditioning to make it smart with temperature sensor to put it on and off based on timers and room temperature.
Thanks for all the help you've provided me! This video especially was timely, as I'm migrating from SmartThings this week and wasn't sure how to port my WebCore based laundry notifications to Home Assistant.
Hi, I got this working properly now A couple of capitalization errors was all. All good now may adapt this to the Dishwasher. Thanks again for the great info
I use a vibration sensor and an energy monitoring plug on my washing machine. It's been pretty good to have an announcement to say it is done. Saved me from having to wash more than once :)
Thank you! I am about to start this. I also will add a motion sensor in my laundry room. If no motion has been sensed for 10 minutes after the washer is finished, it will send another notification to remind me!
Hello, another great video. I’m using the same automation for some time now. Use it for the washing-machine and the tumble-dryer but also to controle the frezer and a pump in the cellar(to keep it dry). If the pump stops using power for more than 24 hours I get a message. Same for the freezer if it lozes power for longer than 30 minutes I get a message. All in combination with custom button-cards, they change color and or start flashing. I like the start/stop montoring. Think I’m going to use that.
Awesome video, thankyou! I also use smart plug to turn on and monitor all my tool battery chargers. Shuts them all off when done and notifies me the batteries are charged. I have 3 different chargers connected to the plug. Also it's inside a cupboard with a zigbee mag switch so I get reminded if I haven't opened the door and removed the batteries.
Hi Ed! I've donated 2 euros since you've made a better version of this than I've created in the past. The donation was made without an account, after that I've downloaded it with an account. The 2 euro is well earned. Hopefully the volume of downloads and the sales conversion will support you in the future.
Another great video well done. And I would love to see a video on how you make the dashboard. You could also add within this automation the number of tablets left And send another message when the level gets below say 10
Another great tutorial! left out the expected time as not required I’m getting false “washing complete” messages whenever I reboot HA (obviously it takes longer than 3 min so HA thinks my washer has been below 3W for 3 min) Going to time my reboot time and adjust the automation to suit. Or maybe I should add a condition to ignore if rebooted - that’ll take some learning but worth it.
New to HA, migrating from HomeSeer. In HomeSeer, I solved this by setting a variable to True when washing started. The washing complete routine would check for low power and that the Variable was True. Only then would it conclude that washing was indeed finished. The action would then notify and set the variable to False.
Thanks for the great video! You say several times that the code download is free, but it doesn't appear that it is as there's a minimum price. Is that intentional?
Thnx for the video. It really inspired me. I might have an upgrade to avoid the coding in the template.yaml. I've created an extra Timer helper for the "expectedTimeLeft". In the automation you can use a service timer.start and use that numer as the duration as it seems to handle the "input_numer.washing_expected_runtime" just fine. I think this is a bit cleaner instead of continues calculation of the "expectedTimeLeft". What are you're thoughts?
great video I have a couple of problems with the dashboard the washing machine start shows the date but the time at 00:00 and the stop card does not appear at all Probably not calculating time ?? I had another problem as my smart plug does not show energy (KWH) but I resolved this with the help of another helper (Riemann Sum Integral) I downloaded your code too and donated 3.00
Fantastic video, i have a question tho... Whenever the washing is done and i dont take it out, the washer goes in standby mode, wich stay active, consuming 0.5W. The automation sees that and send me a notification even when the notification was already sent.
Hey, both on Amazon and Shelly's website, they say the "plug s" is only good to 1800w. Is the higher number you cite something that's set in software? Or, is it possible that they have created a new version that's only safe to the lower wattage?
@@Tntdruid I uploaded a new version which is a bit more clear in what you have to do to get it to work. Also changed the code a bit to make it easier to copy and paste.
My washing machine is changing from 0 to 3 watts multiple times during the wash. This way the washing started trigger id goes of at multiple times. Do you have tips for that? Also my Washing Expected Runtime sensor is displayed a a number and not a time/date.
Thanks for the great video! You say several times that the code download is free, but it doesn't appear that it is as there's a minimum price. Is that intentional??
This will be a nice extension to my washing machine entity, love the estimated time left trick. Do you know of a way to show only the time on the cards for Start, Stop and Estimated End Time ?
is it possible to display the kwh used for the wash once it has finished? I use the power graphs and can do estimates using day history but it would be good to have it in this location
Yes, I think you can. Store the starting KWh for your smart plug in a helper when the washing machine starts and store the ending KWh in another helper when the washing machine stopped. Create a template sensor (or a helper) that calculates the difference when the washing machine stopped and show that in your dashboard.
Hello, thanks for the great video. False positives occur when Home Assistant is restarted. In fact, I am getting notifications even though the machine is not running. Do you have any suggestions to avoid this?
I didn't experience these false positives for a long time, but I had one or two last week as well. Not sure how they are triggered and it's difficult to tackle because they do not always occur on a restart of Home Assistant. I will investigate this!
@@SmartHomeJunkie Hi Ed, i have the exact same experience when rebooting HA. I think it's logical because the trigger (xx minutes power xx watts) is then running again and when the washingmachine is off it will always trigger the automation because when its off it uses less then xx watts so 3 minutes (in my case 10) aftere restarting HA my automation is always triggerd
Hello, Thank you for this great work and for sharing. I have a question. I have 4 devices that I want to monitor like this. 2 washing machines and 2 dryers. Do I have to create this individually for each machine? So for each machine the 4 helpers and the automations? I use Gosund SP1 with Tasmota. Greetings from NRW sends Markus
Hi, I did donate the 2$ ;-) Good explanation and video .Have still some issues but will figure that out. PS: I noticed that my home Assist will have many errors if you look in systeem and then in de onging log fils. Do you have a tip for that? Seems to be a bit unstable after installing serveral plugins etc. I do make many backups but still it is hard to go back because in the meantime I installed other things too so what do you advise on that?
Hi Robin, thank you for your support. 🙏🏻. When ever I see errors in my log I try to go through them one by one to solve them. That might be a tedious process though.
Great work SHJ, but quick question please: the "washing stopped" time in the panel requires formatting as for me it is not the same as for "washing started" (properly displayed in my local date/time format). Likely coming from : secondary: '{{ states(''input_datetime.washing_stopped'') }}' which requires proper formatting, using local_timestamp or likes? Any comment appreciated as regards coding for this. Many thanks, Fred
Great video, unfortunately I have the problem that my machine drops to 1-2 watts in the meantime. it restarts the timer every time. Do you have an idea?
@@cinnay2 I guess you have to trigger the start time at a lower value just above 0. It's experimenting until it works for your specific washing machine.
@@SmartHomeJunkie When you were running through the the 1st helper you say it is a TIME helper, When I try and set that up I do not get any option to add a entity? my last entry is unit is measure? What did I miss, just curious. I have a similar washing machine automation but use a dropdown helper that has the options off/waiting/running/finished and I use that for the dashboard.
@@SmartHomeJunkie Thanks. I stole it from someone else, LOL I am not smart enough to figure it out! Sorry I see I typed it wrong, I did mean Number not time. but again I do not get the same options?
Thanks for a great video! I have a wish for one more feature. I would like to have a "Utility meter" where you can see the cost for the electricity for the last wash when it is done. I have a supplier that charges a different price every hour and therefore need to use a sensor "sensor.price" to calculate the cost. I've searched all over the internet, but haven't been able to figure out how to solve this, but I'm pretty sure you can figure it out!
Do you have a tip as to where I might go wrong? It all works BUT the input number for estimated time keeps increasing and thereby re-triggering the notification.
I have to say, that even with the downloaded code, it is quite hard to copy this. For example, how do I get the value "washing_machine_energy" for one wash? For my system it is just the total consumed energy...
You can view that in one of my other videos. I believe it's this one: Templates and Custom Sensors in Home Assistant - How To TUTORIAL ruclips.net/video/cdz32TLu_gw/видео.html
Hi, thanks for the video and taking the time to produce the code, which I purchased. However I am getting some error codes which I can't seem to sort out what is wrong, any suggestions. Errors below: Error while processing template: Template Error while processing template: Template Error while processing template: Template Error while processing template: Template Error while processing template: Template Thanks R.
Thank you for the good explenation. Some other RUclipsrs have proposed to add a door opening sensor to the door to prevent to forget the wet cloths in the machine - this might be a good add on to your dashboard. On my machine at the end of each program is a mode called in German "Knitterschutz" which ir running for quite a time and prevents my automations so far to detect the end the real washing program - if you have any ideas for that they are vey welcome ;-)
our tumble dryer does that - its ‘finished’ but still tumbles at a low heat. I think you could manually monitor the energy used (give it some error % too) and set a similar ‘washing finished’ based on that higher trigger watts. And perhaps add a timer that sends a reminder ‘hey its finished but you’re wasting energy’ if its been in that ‘finished but using energy’ mode for 30 minutes or so?
Hello. I have a small issue. I have my washing machine set to announce via alexa when the power usage drops below a certain amount. However everytime I restart home assistant alexa announces that the machine is finished washing. How can i resolve this?
His automation is flawed, I had exactly the same issue as you if the plug became unavailable for even a couple of seconds. I have a threshold helper (binary sensor) to alter the state of a custom card (icon changes color) on my dash if the machine (dryer in my case) is running or not, based on the current rising above 50W turns sensor to on. It does not appear to switch on if the plug becomes unavailable and should not switch on if starting HASS. You could try making a similar helper then using that (with your own value) to trigger your automation based on that sensor changing from on to off for more than 3 minutes.
First of all, I want to congratulate you on the video, you gave very useful ideas. I downloaded the script, but I got stuck at the dashboard. I tried to add the cards manually, but I only managed to add the first two, from there I don't know how to proceed, because it won't accept it when saving :(
@@SmartHomeJunkie In the meantime, I realized that I'm the stupid one, because it also says that the problem is with the state-switch integration, but I don't understand why. I installed it from HACS, but it still doesn't work.
@@MrExCat Maybe the installation went wrong. This sometimes happens. If you go to the state switch integration in HACS, you can click on the three dots in the right upper corner and try Redownload. I fixed some issues in the past using this approach.
@@SmartHomeJunkie Sorry, I have one more question. There is a washing_machine_expected_time_left sensor in the template. Where should this be created? Because I couldn't find any information about it in the video. (or I was just careless :( )
It was free at the time, but I had to change the conditions a couple of months later to make sure that I could pay for my bills. This channel is not a hobby anymore. I also mention it in the description.
I used your code for the dashboard card that shows the time the last wash stopped, and it always shows some erroneous time (not sure if it's a coincidence, but it always shows some xx:11 as the time). When I look at the actual helper data, it has recorded the correct stop time. Also, when instead of your code for a mushroom template card, I just use a simple mushroom entity card (as you do for the time the washing started), it shows the correct finish time. A. Can you please confirm that there are no errors in your code for the washing stopped time card? B. Can you explain why you used the mushroom template card for washing stopped time instead of just using an entity card? I feel like I'm missing / not understanding something. Thanks!
The code is not wrong. Not sure why it shows the wrong time format on your side. I use the template card because I use a custom:state-switch card there so that the washing time ended card is not shown as long as the washing machine is still running.
@@SmartHomeJunkie I did a bunch of research to try to find out what was wrong, and just couldn't figure it out for the life of me. I finally realized you do in fact have an error in the code for "Manual card 3". The lower case %m you use to represent the minutes should be an uppercase %M. Lower case m is for month, and that seemed to be throwing an error into the mix. I changed it to uppercase and it works perfectly now. I also did some experimentation and determined that you don't need to use a template card in order to use the state switch card... you could also just use an entity card with the state switch card. Just wanted to share this info in case it's helpful for others.
@@joshnlevinson Thank you for this addition. The code on Ko-Fi is exactly the same as how I have this on my setup and that works. Other people confirmed this too, so I'm still not sure why you get different results.
I saw that you added a message with a link, but these are getting filtered out by RUclips, so it's not visible here. The code that I used is: {{ as_timestamp(states('input_datetime.washing_stopped')) | timestamp_custom('%B %d, %Y at %-I:%m %p')}}
@@SmartHomeJunkie yeah, I figured that was what happened. I couldn't be bothered to re-write the message. But the gist of it was that I found a list of all available timestamp_custom attributes, and it was clearly consistent with what I was experiencing (ie lower case %m giving the month in numeric value, and uppercase %M giving the minutes). Also, note that you did use uppercase %M in other parts of your dashboard code. So I'm actually surprised it's working okay for you and others in the case of the time when the wash finished 😂
Hi, I can't figure out how to download the code via the link. There is no code visible and I don't see any button? Tutorial is great though! I only miss the explanation how to do that realtime time left card?
@@SmartHomeJunkie i just paid. I would have expected an email, but I didn't received anything yet. Should I have more patience, or did something went wrong? I see what went wrong: i paid with ideal but was not lead back to the download screen. I tried again with Paypal which worked perfectly. I was sent to the download screen and was able to download the zip
Ed, the video is not consistent: - At 10:40 your Actions is "Notifictions: Send a notification via mobile_app_iphone". - Then you add a Trigger. - And at 11:16 your Actions is not the same anymore, now I see "Perform an action if: Washing Started (or else!)". Then I get an error in my head...
I use a Sonoff S31 (WiFi) plug flashed with Tasmota to pass status via MQTT to Home Assistant for my automation. The S31 is rated at 15A which matches the max load used for my washer circuit. Do not use the "S31 lite" version of the plug.
Indeed. please use the following code for Washing Ended: {{ as_timestamp(states('input_datetime.washing_stopped')) | timestamp_custom('%B %d, %Y at %-I:%m %p')}}
@@ericnieuwbeerta6091 Yes, replace the washing_stopped code with the code that I provided up here. You can also try to contact me on Discord if you need help.
@@SmartHomeJunkie Thanks for the video and the suggestion but I looked into that and could not make it work. I opted for a different approach, created a threshold helper binary sensor (on over 50W) and then use that as the automation notification trigger, i,e goes from on to off for more than 3 minutes. 50W is way below the pump or drum motor consumption and the machine never draws less than 50W for 4 minutes or more unless the cycle has finished so this works really well. My helper is immune to start up or device unavailable errors too.
My washing machine fluctuates its power. It will go from 0 to 3..4..5 wats and back to 0 again. The Washing Machine Started keeps getting set. I watched the automation while it was running and it kept triggering the started. It goes to 0 when it needs to add water and such. Or stops the agitation for a few seconds before it switches cycles. Ideas?
@@larryjohnson897 Hello, is it possible to use a time trigger or to delay the stop by setting that the power must drop to 0 for 2 or more minutes before its actualy a stop.
@@DaveMenkehorst I did make the time out longer and it solved the problem. Thanks for checking back up. I am switching plug adapters soon to a wifi one as the zwave keeps disconnecting due to another issue.
I don't trust a relay staying on for years... I might try hacking such a smart plug with a bypass on the relay (yes, breaking the remote power control) and just use it for power measurement.
Shelly sells devices that can support higher wattages but some require wiring instead of just "plugging-in". Additionally, there are competitors, including Sonoff, Feit and others that might fit your use case.
Any idea how much time it costs to create a video like this? I guess not. Creating the dashboard is really a last simple step in this video that most people can do themselves. The template sensor is the difficult part that is perfectly explained in this video. You can download the code to save yourself time. That has value.
Both washer and dryer are huge inductive loads (The motors). The ratings for Amperage are *not* for inductive loads, but resistive loads. Even a 1-2A inductive load can eventually kill the tiny relays in a small smart plug. These devices will burn out, this is really dangerous, you should pull your video. Don't trust me, search around, many people (including myself) found this out the hard way.
@@firstname2072 then you have no idea what you're talking about. The motors produce inductive loads while they spin, you can look up both the inductive rating and resistive rating for these devices, the Shelly's are not rated for the inductive loads that are produced. Look it up and learn something
@@firstname2072 here Mr. Smart Electrical Engineer, look at the spec sheet. Shelly is only rated for 8A inductive loads, and the Sonoffs are even lower: www.shelfkey.com/DataSheets/65552888.pdf
@@firstname2072 Keep in mind, large inductance motors will consume nearly double the running current during startup. Ie, a 15amp motor may surge 30amps when starting. You generally want a contactor for such loads. Search around and find multiple stories where these are fried when using them for inductive loads. You should know better if you're an "Electrical Engineer" as you state
thanks I tried to follow you but my template is not working Not sure if the unique_id is fixed or not ? - name: "Washing Machine Expected Time Left" unique_id: 1afa107f-e93f-4665-a3f1-25a51c8c4981
You can use whatever unique-id as long as it's unique in your setup. If you copy the code from the download file it should work. Also, make sure you do not have other template sensors defined in your sensors.yaml or configuration.yaml. They should all be in the templates.yaml if you use a templates.yaml file.
For what other exciting automations do you use smart plugs with power metering? Let me know in the comments!
Same, but then for the coffee. And if working from home (using dock) then the lights change color for 5 seconds.
@@PietjeNL Nice!!!
I meter almost all electic devices like: heatpump, waterheater, washingmachine, dryer, refigirator, freezer, office and multi media equipment, heating for my car (gets cold in Norway).
Lights are measured via powercalc, small stuff like usb power plugs have to be put in powercalc
I used one for my projector to see if it's on or not so I can turn it off when we leave the home or turn it on when I ask for it with a broadlink RM, I use also one for my airconditioning to make it smart with temperature sensor to put it on and off based on timers and room temperature.
Very similar to the washing machine automation but knowing when the dehumidifier is full. When it's full the power drops right down.
That's amazing, thank you for sharing your experience with us. I now must go watch more of your videos.
Enjoy!
Thanks for all the help you've provided me! This video especially was timely, as I'm migrating from SmartThings this week and wasn't sure how to port my WebCore based laundry notifications to Home Assistant.
From 2 days I make something similar to this automation in my 3D printer but your way much more clean and clear thanks Ed 👌🏻
Hi, I got this working properly now A couple of capitalization errors was all. All good now may adapt this to the Dishwasher. Thanks again for the great info
I use a vibration sensor and an energy monitoring plug on my washing machine. It's been pretty good to have an announcement to say it is done. Saved me from having to wash more than once :)
Thank you. This video is great on many aspects and the coding is neat. I learned a lot. Please keep up the good work !
Thank you for your support!!!
Thank you! I am about to start this. I also will add a motion sensor in my laundry room. If no motion has been sensed for 10 minutes after the washer is finished, it will send another notification to remind me!
Nice!
Have just bought a smart plug. so will give this a go next week, Thanks
Got it working, sort of. it took over 3 hours before a message arrived on my phone.
Hello, another great video.
I’m using the same automation for some time now.
Use it for the washing-machine and the tumble-dryer but also to controle the frezer and a pump in the cellar(to keep it dry). If the pump stops using power for more than 24 hours I get a message. Same for the freezer if it lozes power for longer than 30 minutes I get a message. All in combination with custom button-cards, they change color and or start flashing.
I like the start/stop montoring. Think I’m going to use that.
Hi. Great video. How do I send notification to play on my Apple HomePod about washing machine done?
your vlog colors are so much better now!!
Yeah, I got a color grading coach this week! One of my viewers helped me a lot with it! That helped so much.
Awesome video, thankyou! I also use smart plug to turn on and monitor all my tool battery chargers. Shuts them all off when done and notifies me the batteries are charged. I have 3 different chargers connected to the plug. Also it's inside a cupboard with a zigbee mag switch so I get reminded if I haven't opened the door and removed the batteries.
Hi Ed! I've donated 2 euros since you've made a better version of this than I've created in the past. The donation was made without an account, after that I've downloaded it with an account. The 2 euro is well earned. Hopefully the volume of downloads and the sales conversion will support you in the future.
Thank you for your support Bart! This really helps to keep creating these tutorials for all of you. 🙏🏻🙏🏻🙏🏻
Hey man
Thanks for this awesome How To Video. I love it!
But as an HomeAssistant newby, I am very, very interested in how you created the dashboard.
I used mushroom cards for it.
Another great video well done. And I would love to see a video on how you make the dashboard. You could also add within this automation the number of tablets left And send another message when the level gets below say 10
Looking forward to trying this. Thanks 👍
Another great tutorial!
left out the expected time as not required
I’m getting false “washing complete” messages whenever I reboot HA (obviously it takes longer than 3 min so HA thinks my washer has been below 3W for 3 min)
Going to time my reboot time and adjust the automation to suit.
Or maybe I should add a condition to ignore if rebooted - that’ll take some learning but worth it.
I have the exact same false washing complete. May I ask how you solve it ? Thanks !
New to HA, migrating from HomeSeer. In HomeSeer, I solved this by setting a variable to True when washing started. The washing complete routine would check for low power and that the Variable was True. Only then would it conclude that washing was indeed finished. The action would then notify and set the variable to False.
This is so good! Can’t wait to try
2:00 It is important. Thank you very much!
Thanks Ed, really like the washing machine dashboard. Will add it this evening. Already had a washing notification sent to…. Me 😅
Haha! Great!
Thanks for the great video! You say several times that the code download is free, but it doesn't appear that it is as there's a minimum price. Is that intentional?
That's right, it says: Please enter at least €3
Thnx for the video. It really inspired me. I might have an upgrade to avoid the coding in the template.yaml. I've created an extra Timer helper for the "expectedTimeLeft". In the automation you can use a service timer.start and use that numer as the duration as it seems to handle the "input_numer.washing_expected_runtime" just fine. I think this is a bit cleaner instead of continues calculation of the "expectedTimeLeft". What are you're thoughts?
Great idea!
👍 Perfect with Sonoff S31 smart plug , only glitch Washer Started Time is in 24h format and Washing Ended in 12hr format ?
Thanks!
Great Video ... Is it possible to have a UI with button /custom button with a fan turning when the washing machine is running ?
Yes it is. You can use the custom button card for it I think.
Super bedankt. Heel leuk, ga ik binnenkort is instellen. Top!
great video I have a couple of problems with the dashboard the washing machine start shows the date but the time at 00:00 and the stop card does not appear at all Probably not calculating time ?? I had another problem as my smart plug does not show energy (KWH) but I resolved this with the help of another helper (Riemann Sum Integral) I downloaded your code too and donated 3.00
Could you also add a Node Red automation? Thank you for a fantastic video
Sorry, I do not do Node Red. Node Red is not needed imho.
Fantastic video, i have a question tho...
Whenever the washing is done and i dont take it out, the washer goes in standby mode, wich stay active, consuming 0.5W. The automation sees that and send me a notification even when the notification was already sent.
Hi, and thanks!
It might be that the power value fluctuates and that is why it triggers again.
@@SmartHomeJunkie any solution to that?
@@paolorandazzo. Monitor the power usage and adapt the automation threshold and wait time to get it to work perfectly.
@@SmartHomeJunkie Thank you very Much!!
Great video, thanks. I wish you would combine your music to these videos too, so many guitars in the background
Hey, both on Amazon and Shelly's website, they say the "plug s" is only good to 1800w. Is the higher number you cite something that's set in software? Or, is it possible that they have created a new version that's only safe to the lower wattage?
The Shelly PLUG S can handle up to 2500Watt. I've set it to 2300 for safety.
"you made a mashine to wash a monitor??"
... Welcome to my brain, lady's and gentlemen!
Very nice, I will pay some when I download it 👍
Thank you for your support! This really helps. 🙏
@@SmartHomeJunkie The copy & past of the card code does not work. getting some errors.
@@Tntdruid I uploaded a new version which is a bit more clear in what you have to do to get it to work. Also changed the code a bit to make it easier to copy and paste.
@@SmartHomeJunkie new code works, thanks again 👍😀
My washing machine is changing from 0 to 3 watts multiple times during the wash. This way the washing started trigger id goes of at multiple times. Do you have tips for that? Also my Washing Expected Runtime sensor is displayed a a number and not a time/date.
Maybe you can use a delay in checking for the low value. For instance if wattage
Thanks
Thank you so much for taking the time to watch and comment!
Thanks for the great video! You say several times that the code download is free, but it doesn't appear that it is as there's a minimum price. Is that intentional??
Yes It is. I explained that in the description.
This will be a nice extension to my washing machine entity, love the estimated time left trick.
Do you know of a way to show only the time on the cards for Start, Stop and Estimated End Time ?
Yes. I will add it to the download file.
Aaaaaand done...
is it possible to display the kwh used for the wash once it has finished? I use the power graphs and can do estimates using day history but it would be good to have it in this location
Yes, I think you can. Store the starting KWh for your smart plug in a helper when the washing machine starts and store the ending KWh in another helper when the washing machine stopped. Create a template sensor (or a helper) that calculates the difference when the washing machine stopped and show that in your dashboard.
thanks, downloaded, all works!
Hello, thanks for the great video. False positives occur when Home Assistant is restarted. In fact, I am getting notifications even though the machine is not running. Do you have any suggestions to avoid this?
I didn't experience these false positives for a long time, but I had one or two last week as well. Not sure how they are triggered and it's difficult to tackle because they do not always occur on a restart of Home Assistant. I will investigate this!
@@SmartHomeJunkie Thank you very much for your attention to this issue. Waiting for more great videos 🥰
@@gurkanyesilgun I already looked into it, but I don't understand yet why this happens. It's a peculiar issue.
@@SmartHomeJunkie ❤
@@SmartHomeJunkie Hi Ed, i have the exact same experience when rebooting HA. I think it's logical because the trigger (xx minutes power xx watts) is then running again and when the washingmachine is off it will always trigger the automation because when its off it uses less then xx watts so 3 minutes (in my case 10) aftere restarting HA my automation is always triggerd
I grabbed the code from the store, is there a formula/code to calculate KWh's? my meter doesnt have this built in
Hello, Thank you for this great work and for sharing. I have a question. I have 4 devices that I want to monitor like this. 2 washing machines and 2 dryers. Do I have to create this individually for each machine? So for each machine the 4 helpers and the automations? I use Gosund SP1 with Tasmota. Greetings from NRW sends Markus
Hi Markus, yes, I think so, otherwise it's not possible to run then simultaneously.
@@SmartHomeJunkie okay thanks for your answer. then I'll see if I can convert it for my devices. 😉👍 I already have a great basic framework from you.
@@SmartHomeJunkie I have one more question. can I change the device_id? Or where does this id come from? 🤔
@@MarkusThomaen The ID is determined by HA as soon as you select the device in the automation.
@@SmartHomeJunkie ahh okay thanx. then I'll try to adjust that.
Hi, I did donate the 2$ ;-) Good explanation and video .Have still some issues but will figure that out. PS: I noticed that my home Assist will have many errors if you look in systeem and then in de onging log fils. Do you have a tip for that? Seems to be a bit unstable after installing serveral plugins etc. I do make many backups but still it is hard to go back because in the meantime I installed other things too so what do you advise on that?
Hi Robin, thank you for your support. 🙏🏻. When ever I see errors in my log I try to go through them one by one to solve them. That might be a tedious process though.
i use for metering washmachine the shelly 1pm
Great work SHJ, but quick question please: the "washing stopped" time in the panel requires formatting as for me it is not the same as for "washing started" (properly displayed in my local date/time format). Likely coming from : secondary: '{{ states(''input_datetime.washing_stopped'') }}'
which requires proper formatting, using local_timestamp or likes? Any comment appreciated as regards coding for this. Many thanks, Fred
You can download the code for the dashboard here: ko-fi.com/s/97649b156b
I have the WHEN the AND IF the THEN DO, how do i get the ELES section in the automation window? Thx
Dave
Use the new building blocks in Automations.
Great video, unfortunately I have the problem that my machine drops to 1-2 watts in the meantime. it restarts the timer every time. Do you have an idea?
What's the watt value when it is on standby? You can send a message if it is around that value for 5 minutes for example.
@@SmartHomeJunkie in standby it dont Displays any Watts
@@cinnay2 I would say that you can then check if the power value is 0 Watt for 5 minutes, then send a message.
@@SmartHomeJunkie yes but the Problem is every time the Watts Drops under 3 the washing Machine start time chances
@@cinnay2 I guess you have to trigger the start time at a lower value just above 0. It's experimenting until it works for your specific washing machine.
Great work-Thaks. I would like to see ahow-to on using the state-switch card!
Will do!
@@SmartHomeJunkie When you were running through the the 1st helper you say it is a TIME helper, When I try and set that up I do not get any option to add a entity? my last entry is unit is measure? What did I miss, just curious. I have a similar washing machine automation but use a dropdown helper that has the options off/waiting/running/finished and I use that for the dashboard.
@@Joseph-ko2kl No, it's a number helper that stores the timestamp. Also a good idea those states!
@@SmartHomeJunkie Thanks. I stole it from someone else, LOL I am not smart enough to figure it out! Sorry I see I typed it wrong, I did mean Number not time. but again I do not get the same options?
@@Joseph-ko2kl that's weird. They should be there. Is advanced mode set in your account settings. Might be that this is the reason. Not sure though.
Thanks for a great video! I have a wish for one more feature. I would like to have a "Utility meter" where you can see the cost for the electricity for the last wash when it is done. I have a supplier that charges a different price every hour and therefore need to use a sensor "sensor.price" to calculate the cost. I've searched all over the internet, but haven't been able to figure out how to solve this, but I'm pretty sure you can figure it out!
I guess this is the video you are looking for ;-) ruclips.net/video/NFJ510uhswY/видео.html
For the template sensor, how did you generate the unique id?
Right click on your mouse and select create unique id
@@SmartHomeJunkie Derp. Thanks!
Excelente.
Obrigado.
Do you have a tip as to where I might go wrong? It all works BUT the input number for estimated time keeps increasing and thereby re-triggering the notification.
No idea really. 🤷♂
I have to say, that even with the downloaded code, it is quite hard to copy this.
For example, how do I get the value "washing_machine_energy" for one wash?
For my system it is just the total consumed energy...
You should be able to retrieve the used energy from the smart plug you use on your washing machine.
Hi Ed,
Could you explain how you have created the total number of lights on at the top of your homepage at @3:08 please?
You can view that in one of my other videos. I believe it's this one: Templates and Custom Sensors in Home Assistant - How To TUTORIAL
ruclips.net/video/cdz32TLu_gw/видео.html
Hi, thanks for the video and taking the time to produce the code, which I purchased. However I am getting some error codes which I can't seem to sort out what is wrong, any suggestions. Errors below:
Error while processing template: Template
Error while processing template: Template
Error while processing template: Template
Error while processing template: Template
Error while processing template: Template
Thanks R.
Thank you for the good explenation.
Some other RUclipsrs have proposed to add a door opening sensor to the door to prevent to forget the wet cloths in the machine - this might be a good add on to your dashboard.
On my machine at the end of each program is a mode called in German "Knitterschutz" which ir running for quite a time and prevents my automations so far to detect the end the real washing program - if you have any ideas for that they are vey welcome ;-)
Is Knitter a wrinkle? My dryer does wrinkle prevention but the washer doesn’t.
our tumble dryer does that - its ‘finished’ but still tumbles at a low heat. I think you could manually monitor the energy used (give it some error % too) and set a similar ‘washing finished’ based on that higher trigger watts. And perhaps add a timer that sends a reminder ‘hey its finished but you’re wasting energy’ if its been in that ‘finished but using energy’ mode for 30 minutes or so?
Hello. I have a small issue. I have my washing machine set to announce via alexa when the power usage drops below a certain amount. However everytime I restart home assistant alexa announces that the machine is finished washing. How can i resolve this?
His automation is flawed, I had exactly the same issue as you if the plug became unavailable for even a couple of seconds. I have a threshold helper (binary sensor) to alter the state of a custom card (icon changes color) on my dash if the machine (dryer in my case) is running or not, based on the current rising above 50W turns sensor to on. It does not appear to switch on if the plug becomes unavailable and should not switch on if starting HASS. You could try making a similar helper then using that (with your own value) to trigger your automation based on that sensor changing from on to off for more than 3 minutes.
Dryer suggestions??
That should work the same way.
First of all, I want to congratulate you on the video, you gave very useful ideas.
I downloaded the script, but I got stuck at the dashboard. I tried to add the cards manually, but I only managed to add the first two, from there I don't know how to proceed, because it won't accept it when saving :(
If you cannot save the card, it's probably because there is an indentation error.
@@SmartHomeJunkie In the meantime, I realized that I'm the stupid one, because it also says that the problem is with the state-switch integration, but I don't understand why. I installed it from HACS, but it still doesn't work.
@@MrExCat Maybe the installation went wrong. This sometimes happens. If you go to the state switch integration in HACS, you can click on the three dots in the right upper corner and try Redownload. I fixed some issues in the past using this approach.
@@SmartHomeJunkie Sorry, I have one more question. There is a washing_machine_expected_time_left sensor in the template. Where should this be created? Because I couldn't find any information about it in the video. (or I was just careless :( )
Big thumbs up !!
Bedankt voor deze, ik heb het script gedownload dus een donatie gedaan. Krijg het nog niet helemaal aan de praat. Binnenkort nog eens naar kijken.
Thanks for your support!
If you want to be honest please mention in videos that the code is free to download only for a limited period of time after releasing the video.
It was free at the time, but I had to change the conditions a couple of months later to make sure that I could pay for my bills. This channel is not a hobby anymore. I also mention it in the description.
Working on custom cards in the Dashboard. I'm getting this error" Configuration errors detected:
Custom element not found: state-switch"
You need to install the state-switch card using HACS.
I used your code for the dashboard card that shows the time the last wash stopped, and it always shows some erroneous time (not sure if it's a coincidence, but it always shows some xx:11 as the time). When I look at the actual helper data, it has recorded the correct stop time. Also, when instead of your code for a mushroom template card, I just use a simple mushroom entity card (as you do for the time the washing started), it shows the correct finish time.
A. Can you please confirm that there are no errors in your code for the washing stopped time card?
B. Can you explain why you used the mushroom template card for washing stopped time instead of just using an entity card? I feel like I'm missing / not understanding something.
Thanks!
The code is not wrong. Not sure why it shows the wrong time format on your side.
I use the template card because I use a custom:state-switch card there so that the washing time ended card is not shown as long as the washing machine is still running.
@@SmartHomeJunkie I did a bunch of research to try to find out what was wrong, and just couldn't figure it out for the life of me. I finally realized you do in fact have an error in the code for "Manual card 3". The lower case %m you use to represent the minutes should be an uppercase %M. Lower case m is for month, and that seemed to be throwing an error into the mix. I changed it to uppercase and it works perfectly now.
I also did some experimentation and determined that you don't need to use a template card in order to use the state switch card... you could also just use an entity card with the state switch card.
Just wanted to share this info in case it's helpful for others.
@@joshnlevinson Thank you for this addition. The code on Ko-Fi is exactly the same as how I have this on my setup and that works. Other people confirmed this too, so I'm still not sure why you get different results.
I saw that you added a message with a link, but these are getting filtered out by RUclips, so it's not visible here. The code that I used is:
{{ as_timestamp(states('input_datetime.washing_stopped')) |
timestamp_custom('%B %d, %Y at %-I:%m %p')}}
@@SmartHomeJunkie yeah, I figured that was what happened. I couldn't be bothered to re-write the message. But the gist of it was that I found a list of all available timestamp_custom attributes, and it was clearly consistent with what I was experiencing (ie lower case %m giving the month in numeric value, and uppercase %M giving the minutes). Also, note that you did use uppercase %M in other parts of your dashboard code. So I'm actually surprised it's working okay for you and others in the case of the time when the wash finished 😂
Hi, I can't figure out how to download the code via the link. There is no code visible and I don't see any button? Tutorial is great though! I only miss the explanation how to do that realtime time left card?
The code can be downloaded against a small fee nowadays at this page: ko-fi.com/s/97649b156b
@@SmartHomeJunkie i just paid. I would have expected an email, but I didn't received anything yet. Should I have more patience, or did something went wrong?
I see what went wrong: i paid with ideal but was not lead back to the download screen. I tried again with Paypal which worked perfectly. I was sent to the download screen and was able to download the zip
I have one additional question: why use {% set in the first line and why {%- set in the other lines for the template code?
@@koenboom9959 Unfortunately there are some issues with iDEAL I believe. I cannot really fix that because Ko-Fi handles that.
@@koenboom9959 Is just a way to keep code together in the Developer Tools while testing. Nothing to worry about.
This works great but every time I restart HA, it will also send the notifications. Is there anyway to stop that?
Not sure why you get the behavior. I do not get a message if HA restarts. 🤷🏼
@@SmartHomeJunkie I'll have to do some troubleshooting, very weird.
I've had this for quite some time. Also have a message here in Node-red to my Google Homes and Whatsapp
I just joined today. At the beginning, I could login but when I restarted my tablet, I couldn't login
Thank you for your support 🙏🏻 Not sure what you mean with l that you can't login though. 🤷🏼
Ed, the video is not consistent:
- At 10:40 your Actions is "Notifictions: Send a notification via mobile_app_iphone".
- Then you add a Trigger.
- And at 11:16 your Actions is not the same anymore, now I see "Perform an action if: Washing Started (or else!)".
Then I get an error in my head...
I don't see how it's not consistent. I built everything up gradually. First a simple example and then a bit more complex with the if then example.
Can't download free code. Why do you say that if it's not true?
I understand your question, and decided to change the conditions after an introduction phase in a later stage. Sorry, downloading is not free anymore.
Can anyone recommend a US smart plug that can handle the power load of a washing machine?
I use a Sonoff S31 (WiFi) plug flashed with Tasmota to pass status via MQTT to Home Assistant for my automation. The S31 is rated at 15A which matches the max load used for my washer circuit. Do not use the "S31 lite" version of the plug.
One more question the time format is wrong I see it correct in "washing started 28 October 2022 at 20:27" but on "washing ended 2022-10-29 07:04:39"?
Indeed. please use the following code for Washing Ended:
{{ as_timestamp(states('input_datetime.washing_stopped')) |
timestamp_custom('%B %d, %Y at %-I:%m %p')}}
@@SmartHomeJunkie I am not sure were te change this? in template or visual or automation?
@@ericnieuwbeerta6091 In the dashboard.
@@SmartHomeJunkie ???
type: custom:state-switch
entity: template
template: >-
{% if as_timestamp(states('input_datetime.washing_stopped')) >
as_timestamp(states('input_datetime.washing_started')) %} true {% else %}
false {% endif %}
states:
'true':
type: custom:mushroom-template-card
primary: Washing Ended
secondary: '{{ states(''input_datetime.washing_stopped'') }}'
icon: mdi:clock
icon_color: blue
layout: vertical
fill_container: true
@@ericnieuwbeerta6091 Yes, replace the washing_stopped code with the code that I provided up here. You can also try to contact me on Discord if you need help.
👍
I would want this function, but I don’t have a plug on my washer. The cable is directly connected in the wall socket.😔
I guess that is not that hard to change?
@@SmartHomeJunkie you would be correct. But the washer is in the bathroom and I believe we are not allowed to have plugs there in Sweden.
@@Xpl0jd1 Ah okay. I was not aware of that. That's a pity.
You could use a vibration sensor from aqara and integrate a similar logic
@@danielducu That's a clever idea! You will miss some of the dashboard functionalities, but that's a minor thing I guess.
If the plug becomes unavailable then becomes available again, it triggers the automation using current threshold value.
You can extend the automation to check if the status became available if you like.
@@SmartHomeJunkie Thanks for the video and the suggestion but I looked into that and could not make it work. I opted for a different approach, created a threshold helper binary sensor (on over 50W) and then use that as the automation notification trigger, i,e goes from on to off for more than 3 minutes. 50W is way below the pump or drum motor consumption and the machine never draws less than 50W for 4 minutes or more unless the cycle has finished so this works really well. My helper is immune to start up or device unavailable errors too.
@@cbcdesign001 sounds like a great solution!
I can not find state -switch integration in HACS
Should be there: github.com/thomasloven/lovelace-state-switch
Thanks.
I did the exact items and edited my sensor name to match. I get errors and it will not work.
Helps to set the corect W vs A vs KWH setting for reporting from the plug/sensor. Seems much better now. Thank you.
My washing machine fluctuates its power. It will go from 0 to 3..4..5 wats and back to 0 again. The Washing Machine Started keeps getting set. I watched the automation while it was running and it kept triggering the started. It goes to 0 when it needs to add water and such. Or stops the agitation for a few seconds before it switches cycles. Ideas?
@@larryjohnson897 Hello, is it possible to use a time trigger or to delay the stop by setting that the power must drop to 0 for 2 or more minutes before its actualy a stop.
@@larryjohnson897 Did you find a solution for this?
@@DaveMenkehorst I did make the time out longer and it solved the problem. Thanks for checking back up. I am switching plug adapters soon to a wifi one as the zwave keeps disconnecting due to another issue.
I don't trust a relay staying on for years... I might try hacking such a smart plug with a bypass on the relay (yes, breaking the remote power control) and just use it for power measurement.
Aren't there any decent wifi power monitors that do not switch?
@@JohanVromans I only know about the ones with clamps, like the Shelly EM. But that doesn't really make sense for monitoring a wall plug..
Sorry, but I can't find the 'if' in automation
The automation interface changed so we 2024.2. Look within the building blocks.
@@SmartHomeJunkiein building blocks I see only And, Not and Or
@@rafdijk In the Then Do section there is If Then when you click on Add Building Block.
2500 watt isn’t enough for my washer. 😢
Shelly sells devices that can support higher wattages but some require wiring instead of just "plugging-in". Additionally, there are competitors, including Sonoff, Feit and others that might fit your use case.
If you want to make this you have to pay him beacuse "the video would be too long" to show how he made the dashboard😔
Any idea how much time it costs to create a video like this? I guess not. Creating the dashboard is really a last simple step in this video that most people can do themselves. The template sensor is the difficult part that is perfectly explained in this video. You can download the code to save yourself time. That has value.
"Downloading is free"..."Please enter at least €3"... okay...
I'm sorry, but I had to change the conditions after a while. Did you read the note in the description?
You say the code is free but wants to charge me €2
Yes, the conditions have changed over time.
@@SmartHomeJunkie fair enough was just wondering if some was wrong on my side
No sorry. See the message in the description as well. I hope you can still get it to work. If not, contact me on Discord.
Both washer and dryer are huge inductive loads (The motors). The ratings for Amperage are *not* for inductive loads, but resistive loads. Even a 1-2A inductive load can eventually kill the tiny relays in a small smart plug. These devices will burn out, this is really dangerous, you should pull your video. Don't trust me, search around, many people (including myself) found this out the hard way.
As an electrical engineer I can tell you that you just spouted absolute rubbish lol
@@firstname2072 then you have no idea what you're talking about. The motors produce inductive loads while they spin, you can look up both the inductive rating and resistive rating for these devices, the Shelly's are not rated for the inductive loads that are produced. Look it up and learn something
@@firstname2072 here Mr. Smart Electrical Engineer, look at the spec sheet. Shelly is only rated for 8A inductive loads, and the Sonoffs are even lower: www.shelfkey.com/DataSheets/65552888.pdf
@@firstname2072 Keep in mind, large inductance motors will consume nearly double the running current during startup.
Ie, a 15amp motor may surge 30amps when starting.
You generally want a contactor for such loads.
Search around and find multiple stories where these are fried when using them for inductive loads. You should know better if you're an "Electrical Engineer" as you state
@@hummmingbear I'm not disputing a higher inrush current.
thanks I tried to follow you but my template is not working
Not sure if the unique_id is fixed or not ?
- name: "Washing Machine Expected Time Left"
unique_id: 1afa107f-e93f-4665-a3f1-25a51c8c4981
You can use whatever unique-id as long as it's unique in your setup. If you copy the code from the download file it should work. Also, make sure you do not have other template sensors defined in your sensors.yaml or configuration.yaml. They should all be in the templates.yaml if you use a templates.yaml file.
Thanks!