How To Monitor Your Washing Machine in Home Assistant

Тәжірибелік нұсқаулар және стиль

If you have a washing machine that is not smart and it is in your attic or laundry room, then it is sometimes difficult to see whether it is ready yet. In this Home Assistant tutorial, I'll show you how to make your "dumb" washing machine a little smarter in an easy way. And as a bonus, you get a super fancy dashboard to monitor your washing machine as well! Let's do this!
⭐ You can download the code that I created for this video at: ko-fi.com/s/97649b156b ⭐
Note: The code was free at the time when I created the video. I had to change the conditions a couple of months later to make sure that I can pay for my groceries. This channel is not a hobby anymore.
Links referred to in this video:
* How to use Trigger ID's: • How to use Trigger IDs...
* How to install HACS in Home Assistant: • Install HACS in Home A...
Blog version: www.smarthomejunkie.net/how-t...
⭐⭐⭐
* Join this channel to get access to perks: 📺 / smarthomejunkie
* Please consider becoming my patron 🏅 at / smarthomejunkie
* Or please support me by buying me a ☕ at ko-fi.com/smarthomejunkie/
⭐⭐⭐
My Devices: github.com/smarthomejunkie/My...
Instagram: / smarthomejunkie
Twitter: / smarth0mejunkie
Facebook: / smarthomejunkie
TikTok: / smarthomejunkie
Discord: / discord
Music by:
* 2TECH-AUDIO: 2tech-audio.bandcamp.com/
00:00:00 Introduction
00:01:16 Step 1: Connect the Power Plug
00:02:58 Step 2: Create Automation that sends a message when the washing machine is ready
00:05:22 Step 3: Make a Washing Machine Dashboard
00:06:18 Creating the Helpers
00:08:33 Creating the template sensor to see the remaining washing time
00:10:19 Adjust the automation so that our dashboard will be filled with data.
00:12:59 Step 4: The Dashboard
#homeassistant #smartlaundry #washingmachine #washing #smartplug #powermetering #energy #smarthome #homeautomation

Пікірлер: 228

  • @SmartHomeJunkie
    @SmartHomeJunkie Жыл бұрын

    For what other exciting automations do you use smart plugs with power metering? Let me know in the comments!

  • @PietjeNL

    @PietjeNL

    Жыл бұрын

    Same, but then for the coffee. And if working from home (using dock) then the lights change color for 5 seconds.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    @@PietjeNL Nice!!!

  • @RobvanKoningsbruggen

    @RobvanKoningsbruggen

    Жыл бұрын

    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

  • @jordyzwaneveld2089

    @jordyzwaneveld2089

    Жыл бұрын

    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.

  • @craigmcfarlane5686

    @craigmcfarlane5686

    Жыл бұрын

    Very similar to the washing machine automation but knowing when the dehumidifier is full. When it's full the power drops right down.

  • @BallsworthBallsbury
    @BallsworthBallsbury Жыл бұрын

    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.

  • @sevagjb
    @sevagjb Жыл бұрын

    From 2 days I make something similar to this automation in my 3D printer but your way much more clean and clear thanks Ed 👌🏻

  • @EsotericArctos
    @EsotericArctos Жыл бұрын

    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 :)

  • @joecb4401
    @joecb4401 Жыл бұрын

    That's amazing, thank you for sharing your experience with us. I now must go watch more of your videos.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Enjoy!

  • @franckfetzer136
    @franckfetzer136 Жыл бұрын

    Thank you. This video is great on many aspects and the coding is neat. I learned a lot. Please keep up the good work !

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Thank you for your support!!!

  • @hansdewael3976
    @hansdewael3976 Жыл бұрын

    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.

  • @mareckorlicki6334
    @mareckorlicki63346 ай бұрын

    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

  • @clairerovic
    @clairerovic Жыл бұрын

    Looking forward to trying this. Thanks 👍

  • @markjhorsley
    @markjhorsley Жыл бұрын

    This is so good! Can’t wait to try

  • @nadjinadj9041
    @nadjinadj9041 Жыл бұрын

    thanks, downloaded, all works!

  • @JimfromIndy
    @JimfromIndy Жыл бұрын

    Thanks!

  • @grahamshaw5531
    @grahamshaw5531 Жыл бұрын

    Have just bought a smart plug. so will give this a go next week, Thanks

  • @grahamshaw5531

    @grahamshaw5531

    Жыл бұрын

    Got it working, sort of. it took over 3 hours before a message arrived on my phone.

  • @mikegodin23
    @mikegodin23 Жыл бұрын

    Excelente. Obrigado.

  • @daleholden
    @daleholden Жыл бұрын

    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

  • @Ard1400
    @Ard1400 Жыл бұрын

    Super bedankt. Heel leuk, ga ik binnenkort is instellen. Top!

  • @garnetbailey6005
    @garnetbailey6005 Жыл бұрын

    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.

  • @Freddystapersma69
    @Freddystapersma69 Жыл бұрын

    your vlog colors are so much better now!!

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Yeah, I got a color grading coach this week! One of my viewers helped me a lot with it! That helped so much.

  • @alohava
    @alohava Жыл бұрын

    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!

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Nice!

  • @limp15000
    @limp15000 Жыл бұрын

    Thanks Ed, really like the washing machine dashboard. Will add it this evening. Already had a washing notification sent to…. Me 😅

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Haha! Great!

  • @riesmoos
    @riesmoos Жыл бұрын

    Big thumbs up !!

  • @Badg0r
    @Badg0r Жыл бұрын

    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.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Thank you for your support Bart! This really helps to keep creating these tutorials for all of you. 🙏🏻🙏🏻🙏🏻

  • @SGHassMan
    @SGHassMan2 ай бұрын

    2:00 It is important. Thank you very much!

  • @FabioScafa
    @FabioScafa4 ай бұрын

    Thanks

  • @SmartHomeJunkie

    @SmartHomeJunkie

    4 ай бұрын

    Thank you so much for taking the time to watch and comment!

  • @Tntdruid
    @Tntdruid Жыл бұрын

    Very nice, I will pay some when I download it 👍

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Thank you for your support! This really helps. 🙏

  • @Tntdruid

    @Tntdruid

    Жыл бұрын

    @@SmartHomeJunkie The copy & past of the card code does not work. getting some errors.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    @@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.

  • @Tntdruid

    @Tntdruid

    Жыл бұрын

    @@SmartHomeJunkie new code works, thanks again 👍😀

  • @florianvieten7225
    @florianvieten7225 Жыл бұрын

    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.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    I used mushroom cards for it.

  • @neilos2085
    @neilos2085 Жыл бұрын

    Great video, thanks. I wish you would combine your music to these videos too, so many guitars in the background

  • @nicnicol6664
    @nicnicol6664 Жыл бұрын

    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.

  • @TheVampyrebe

    @TheVampyrebe

    7 ай бұрын

    I have the exact same false washing complete. May I ask how you solve it ? Thanks !

  • @joostlinnemann

    @joostlinnemann

    6 ай бұрын

    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.

  • @Klaus-macht-Bilder_de
    @Klaus-macht-Bilder_de Жыл бұрын

    Thank you for the good explenation. Some other KZreadrs 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 ;-)

  • @JasperJanssen

    @JasperJanssen

    Жыл бұрын

    Is Knitter a wrinkle? My dryer does wrinkle prevention but the washer doesn’t.

  • @MrKlawUK

    @MrKlawUK

    Жыл бұрын

    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?

  • @craigmcfarlane5686
    @craigmcfarlane5686 Жыл бұрын

    Could you also add a Node Red automation? Thank you for a fantastic video

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Sorry, I do not do Node Red. Node Red is not needed imho.

  • @bartfranken5425
    @bartfranken5425 Жыл бұрын

    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?

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Great idea!

  • @familjenlindh
    @familjenlindh Жыл бұрын

    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!

  • @stueff

    @stueff

    Жыл бұрын

    I guess this is the video you are looking for ;-) kzread.info/dash/bejne/gHp-l5NppcvZp7w.html

  • @francoispitre181
    @francoispitre1818 ай бұрын

    👍 Perfect with Sonoff S31 smart plug , only glitch Washer Started Time is in 24h format and Washing Ended in 12hr format ?

  • @tempdemp1622
    @tempdemp1622 Жыл бұрын

    Great Video ... Is it possible to have a UI with button /custom button with a fan turning when the washing machine is running ?

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Yes it is. You can use the custom button card for it I think.

  • @RobvanKoningsbruggen
    @RobvanKoningsbruggen Жыл бұрын

    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 ?

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Yes. I will add it to the download file.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Aaaaaand done...

  • @mareckorlicki6334
    @mareckorlicki63346 ай бұрын

    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

  • @robinpillekers4871
    @robinpillekers4871 Жыл бұрын

    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?

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    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.

  • @Joseph-ko2kl
    @Joseph-ko2kl Жыл бұрын

    Great work-Thaks. I would like to see ahow-to on using the state-switch card!

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Will do!

  • @Joseph-ko2kl

    @Joseph-ko2kl

    Жыл бұрын

    @@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

    @SmartHomeJunkie

    Жыл бұрын

    @@Joseph-ko2kl No, it's a number helper that stores the timestamp. Also a good idea those states!

  • @Joseph-ko2kl

    @Joseph-ko2kl

    Жыл бұрын

    @@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?

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    @@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.

  • @sebastianschneider4345
    @sebastianschneider4345 Жыл бұрын

    "you made a mashine to wash a monitor??" ... Welcome to my brain, lady's and gentlemen!

  • @MrKlawUK
    @MrKlawUK Жыл бұрын

    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

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    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.

  • @fredhau1256
    @fredhau1256 Жыл бұрын

    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

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    You can download the code for the dashboard here: ko-fi.com/s/97649b156b

  • @sazma
    @sazma Жыл бұрын

    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?

  • @devpipe

    @devpipe

    Ай бұрын

    That's right, it says: Please enter at least €3

  • @MarkusThomaen
    @MarkusThomaen Жыл бұрын

    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

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Hi Markus, yes, I think so, otherwise it's not possible to run then simultaneously.

  • @MarkusThomaen

    @MarkusThomaen

    Жыл бұрын

    @@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.

  • @MarkusThomaen

    @MarkusThomaen

    Жыл бұрын

    @@SmartHomeJunkie I have one more question. can I change the device_id? Or where does this id come from? 🤔

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    @@MarkusThomaen The ID is determined by HA as soon as you select the device in the automation.

  • @MarkusThomaen

    @MarkusThomaen

    Жыл бұрын

    @@SmartHomeJunkie ahh okay thanx. then I'll try to adjust that.

  • @TheDanielsherer
    @TheDanielsherer4 ай бұрын

    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?

  • @SmartHomeJunkie

    @SmartHomeJunkie

    4 ай бұрын

    The Shelly PLUG S can handle up to 2500Watt. I've set it to 2300 for safety.

  • @koolkiwikat
    @koolkiwikat11 ай бұрын

    I grabbed the code from the store, is there a formula/code to calculate KWh's? my meter doesnt have this built in

  • @jdb6284
    @jdb6284 Жыл бұрын

    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?

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    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 kzread.info/dash/bejne/lZiulZSNfNjFl9o.html

  • @paolorandazzo.
    @paolorandazzo. Жыл бұрын

    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.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Hi, and thanks! It might be that the power value fluctuates and that is why it triggers again.

  • @paolorandazzo.

    @paolorandazzo.

    Жыл бұрын

    @@SmartHomeJunkie any solution to that?

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    @@paolorandazzo. Monitor the power usage and adapt the automation threshold and wait time to get it to work perfectly.

  • @paolorandazzo.

    @paolorandazzo.

    Жыл бұрын

    @@SmartHomeJunkie Thank you very Much!!

  • @manfredzimmer1199
    @manfredzimmer1199 Жыл бұрын

    👍

  • @DaveMenkehorst
    @DaveMenkehorst Жыл бұрын

    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.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Maybe you can use a delay in checking for the low value. For instance if wattage

  • @peledudok
    @peledudok Жыл бұрын

    i use for metering washmachine the shelly 1pm

  • @MrExCat
    @MrExCat Жыл бұрын

    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

    @SmartHomeJunkie

    Жыл бұрын

    If you cannot save the card, it's probably because there is an indentation error.

  • @MrExCat

    @MrExCat

    Жыл бұрын

    @@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.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    @@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.

  • @MrExCat

    @MrExCat

    Жыл бұрын

    @@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 :( )

  • @SVRockChalk
    @SVRockChalk4 ай бұрын

    I have the WHEN the AND IF the THEN DO, how do i get the ELES section in the automation window? Thx Dave

  • @SmartHomeJunkie

    @SmartHomeJunkie

    4 ай бұрын

    Use the new building blocks in Automations.

  • @hardtop66
    @hardtop66 Жыл бұрын

    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.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    No idea really. 🤷‍♂

  • @gurkanyesilgun
    @gurkanyesilgun Жыл бұрын

    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?

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    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!

  • @gurkanyesilgun

    @gurkanyesilgun

    Жыл бұрын

    @@SmartHomeJunkie Thank you very much for your attention to this issue. Waiting for more great videos 🥰

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    @@gurkanyesilgun I already looked into it, but I don't understand yet why this happens. It's a peculiar issue.

  • @gurkanyesilgun

    @gurkanyesilgun

    Жыл бұрын

    @@SmartHomeJunkie ❤

  • @basval540

    @basval540

    Жыл бұрын

    @@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

  • @joshnlevinson
    @joshnlevinson Жыл бұрын

    For the template sensor, how did you generate the unique id?

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Right click on your mouse and select create unique id

  • @joshnlevinson

    @joshnlevinson

    Жыл бұрын

    @@SmartHomeJunkie Derp. Thanks!

  • @cinnay2
    @cinnay2 Жыл бұрын

    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?

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    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.

  • @cinnay2

    @cinnay2

    Жыл бұрын

    @@SmartHomeJunkie in standby it dont Displays any Watts

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    @@cinnay2 I would say that you can then check if the power value is 0 Watt for 5 minutes, then send a message.

  • @cinnay2

    @cinnay2

    Жыл бұрын

    @@SmartHomeJunkie yes but the Problem is every time the Watts Drops under 3 the washing Machine start time chances

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    @@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.

  • @nathanross3303
    @nathanross33038 ай бұрын

    Dryer suggestions??

  • @SmartHomeJunkie

    @SmartHomeJunkie

    8 ай бұрын

    That should work the same way.

  • @renebakker591
    @renebakker591 Жыл бұрын

    I've had this for quite some time. Also have a message here in Node-red to my Google Homes and Whatsapp

  • @joshnlevinson
    @joshnlevinson Жыл бұрын

    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!

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    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.

  • @joshnlevinson

    @joshnlevinson

    Жыл бұрын

    @@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.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    @@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.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    I saw that you added a message with a link, but these are getting filtered out by KZread, 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')}}

  • @joshnlevinson

    @joshnlevinson

    Жыл бұрын

    @@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 😂

  • @kevin4rsl
    @kevin4rsl Жыл бұрын

    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?

  • @cbcdesign001

    @cbcdesign001

    Жыл бұрын

    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.

  • @SVRockChalk
    @SVRockChalk4 ай бұрын

    Working on custom cards in the Dashboard. I'm getting this error" Configuration errors detected: Custom element not found: state-switch"

  • @SmartHomeJunkie

    @SmartHomeJunkie

    4 ай бұрын

    You need to install the state-switch card using HACS.

  • @howardbaizer8143
    @howardbaizer8143 Жыл бұрын

    Can anyone recommend a US smart plug that can handle the power load of a washing machine?

  • @DougLight

    @DougLight

    Жыл бұрын

    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.

  • @a.dekater7534
    @a.dekater7534 Жыл бұрын

    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.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Thanks for your support!

  • @koenboom9959
    @koenboom9959 Жыл бұрын

    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

    @SmartHomeJunkie

    Жыл бұрын

    The code can be downloaded against a small fee nowadays at this page: ko-fi.com/s/97649b156b

  • @koenboom9959

    @koenboom9959

    Жыл бұрын

    @@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

  • @koenboom9959

    @koenboom9959

    Жыл бұрын

    I have one additional question: why use {% set in the first line and why {%- set in the other lines for the template code?

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    @@koenboom9959 Unfortunately there are some issues with iDEAL I believe. I cannot really fix that because Ko-Fi handles that.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    @@koenboom9959 Is just a way to keep code together in the Developer Tools while testing. Nothing to worry about.

  • @junkins
    @junkins Жыл бұрын

    This works great but every time I restart HA, it will also send the notifications. Is there anyway to stop that?

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Not sure why you get the behavior. I do not get a message if HA restarts. 🤷🏼

  • @junkins

    @junkins

    Жыл бұрын

    @@SmartHomeJunkie I'll have to do some troubleshooting, very weird.

  • @ericnieuwbeerta6091
    @ericnieuwbeerta6091 Жыл бұрын

    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"?

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    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

    @ericnieuwbeerta6091

    Жыл бұрын

    @@SmartHomeJunkie I am not sure were te change this? in template or visual or automation?

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    @@ericnieuwbeerta6091 In the dashboard.

  • @ericnieuwbeerta6091

    @ericnieuwbeerta6091

    Жыл бұрын

    @@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

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    @@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.

  • @RobertWebbe
    @RobertWebbe Жыл бұрын

    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...

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    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.

  • @grzehooo88
    @grzehooo88 Жыл бұрын

    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.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    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.

  • @geraldjohn47
    @geraldjohn47 Жыл бұрын

    I just joined today. At the beginning, I could login but when I restarted my tablet, I couldn't login

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Thank you for your support 🙏🏻 Not sure what you mean with l that you can't login though. 🤷🏼

  • @Xpl0jd1
    @Xpl0jd1 Жыл бұрын

    I would want this function, but I don’t have a plug on my washer. The cable is directly connected in the wall socket.😔

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    I guess that is not that hard to change?

  • @Xpl0jd1

    @Xpl0jd1

    Жыл бұрын

    @@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.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    @@Xpl0jd1 Ah okay. I was not aware of that. That's a pity.

  • @danielducu

    @danielducu

    Жыл бұрын

    You could use a vibration sensor from aqara and integrate a similar logic

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    @@danielducu That's a clever idea! You will miss some of the dashboard functionalities, but that's a minor thing I guess.

  • @TTMaster002
    @TTMaster002 Жыл бұрын

    Can't download free code. Why do you say that if it's not true?

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    I understand your question, and decided to change the conditions after an introduction phase in a later stage. Sorry, downloading is not free anymore.

  • @CosminRotaru
    @CosminRotaru Жыл бұрын

    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.

  • @JohanVromans

    @JohanVromans

    Жыл бұрын

    Aren't there any decent wifi power monitors that do not switch?

  • @CosminRotaru

    @CosminRotaru

    Жыл бұрын

    @@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..

  • @cbcdesign001
    @cbcdesign001 Жыл бұрын

    If the plug becomes unavailable then becomes available again, it triggers the automation using current threshold value.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    You can extend the automation to check if the status became available if you like.

  • @cbcdesign001

    @cbcdesign001

    Жыл бұрын

    @@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.

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    @@cbcdesign001 sounds like a great solution!

  • @larryjohnson897
    @larryjohnson897 Жыл бұрын

    I did the exact items and edited my sensor name to match. I get errors and it will not work.

  • @larryjohnson897

    @larryjohnson897

    Жыл бұрын

    Helps to set the corect W vs A vs KWH setting for reporting from the plug/sensor. Seems much better now. Thank you.

  • @larryjohnson897

    @larryjohnson897

    Жыл бұрын

    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?

  • @hansdewael3976

    @hansdewael3976

    Жыл бұрын

    @@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

    @DaveMenkehorst

    Жыл бұрын

    @@larryjohnson897 Did you find a solution for this?

  • @larryjohnson897

    @larryjohnson897

    Жыл бұрын

    @@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.

  • @richardspurdens2378
    @richardspurdens23784 ай бұрын

    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.

  • @ericnieuwbeerta6091
    @ericnieuwbeerta6091 Жыл бұрын

    I can not find state -switch integration in HACS

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Should be there: github.com/thomasloven/lovelace-state-switch

  • @ericnieuwbeerta6091

    @ericnieuwbeerta6091

    Жыл бұрын

    Thanks.

  • @rafdijk
    @rafdijk5 ай бұрын

    Sorry, but I can't find the 'if' in automation

  • @SmartHomeJunkie

    @SmartHomeJunkie

    5 ай бұрын

    The automation interface changed so we 2024.2. Look within the building blocks.

  • @rafdijk

    @rafdijk

    5 ай бұрын

    @@SmartHomeJunkiein building blocks I see only And, Not and Or

  • @SmartHomeJunkie

    @SmartHomeJunkie

    5 ай бұрын

    @@rafdijk In the Then Do section there is If Then when you click on Add Building Block.

  • @Christiaanammeraal
    @Christiaanammeraal7 ай бұрын

    2500 watt isn’t enough for my washer. 😢

  • @TheDanielsherer

    @TheDanielsherer

    4 ай бұрын

    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.

  • @Videxthebest
    @Videxthebest Жыл бұрын

    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😔

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    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.

  • @hummmingbear
    @hummmingbear Жыл бұрын

    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

    @firstname2072

    Жыл бұрын

    As an electrical engineer I can tell you that you just spouted absolute rubbish lol

  • @hummmingbear

    @hummmingbear

    Жыл бұрын

    @@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

  • @hummmingbear

    @hummmingbear

    Жыл бұрын

    @@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

  • @hummmingbear

    @hummmingbear

    Жыл бұрын

    @@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

  • @firstname2072

    @firstname2072

    Жыл бұрын

    @@hummmingbear I'm not disputing a higher inrush current.

  • @OnkelTora
    @OnkelTora Жыл бұрын

    "Downloading is free"..."Please enter at least €3"... okay...

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    I'm sorry, but I had to change the conditions after a while. Did you read the note in the description?

  • @chunkster29
    @chunkster29 Жыл бұрын

    You say the code is free but wants to charge me €2

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Yes, the conditions have changed over time.

  • @chunkster29

    @chunkster29

    Жыл бұрын

    @@SmartHomeJunkie fair enough was just wondering if some was wrong on my side

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    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.

  • @sumnaopraymee1206
    @sumnaopraymee1206 Жыл бұрын

    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

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    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.

  • @maromaro503
    @maromaro503 Жыл бұрын

    Thanks!

  • @px3m
    @px3m Жыл бұрын

    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??

  • @SmartHomeJunkie

    @SmartHomeJunkie

    Жыл бұрын

    Yes It is. I explained that in the description.

Келесі