Home Assistant Wake On Lan & Home Assistant RPC Shutdown (HOW-TO)

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024

Комментарии • 133

  • @kingdogbe2854
    @kingdogbe2854 3 года назад +4

    I am in Ghana, West Africa ……………like your channel so much and GOD bless you

    • @KPeyanski
      @KPeyanski  3 года назад +1

      Thank you for the good words. Greetings to Ghana.

  • @PetrusB83
    @PetrusB83 2 года назад +4

    Got it working! Nice tip is to use a template switch with some kind of device tracker (I used my router) to also monitor the PC status. That way the PC is also in the correct state in home assistant when you toggle it manually.

  • @PCman50
    @PCman50 2 года назад +4

    What a Great Tutorial !!!
    I've been using one of many WOL utilities for some time to power On/Off several of my devices on my LAN as needed, but this is so so so Much better inside of Home Assistant. And your tutorials as always are easy to follow and precise without any wasted time.
    Much Thanks !!

    • @KPeyanski
      @KPeyanski  2 года назад +1

      Great to hear! Check my other tutorials as well and enjoy ;)

  • @fumachilla
    @fumachilla 3 года назад +2

    hi, I'm from Germany and say hello
    Thanks again for this great video.
    You have already helped me a lot.
    Please keep it up, thumbs up.

    • @KPeyanski
      @KPeyanski  3 года назад +1

      Awesome, thank you for your positive comment :) This is motivating and I will do my best to continue. Greetings to Germany!

  • @KrispKiwi
    @KrispKiwi Год назад +7

    Just another thing to add with this, turn printer and file sharing on, if that's off it won't work. You may not need to do the extra work with the firewalls etc if you just enable this.

    • @matthewpyro
      @matthewpyro Год назад +2

      my wheels were spinning for a hour until I read this. thank you!

    • @Xalies
      @Xalies Год назад +1

      Thanks. I had this working before with wmi but since a new install of win11 it wouldn't work. Also tested and yes doing this will mean you don't have to change firewall settings.

    • @invertedgames7993
      @invertedgames7993 Год назад +1

      you're a legend mate. I've been trying to figure out why shutdown wasn't working for the past week. No one mentions printer and file sharing!!!

    • @KrispKiwi
      @KrispKiwi Год назад

      Glad to hear ya got it working@@invertedgames7993

    • @darkhummy
      @darkhummy 2 месяца назад

      @@KrispKiwi I followed this tutorial, did all the steps, couldn't get RPC Shutdown to work. Once I did this printer and file sharing tip, everything worked. Couple mnonths passed, windows died as it does, reinstalled windows, followed this tutorial and again and same issue until printer and file sharing lol. This needs an upvote. Seems like HA cannot detect the state without this setting in windows which invalidates the switch.

  • @zov96
    @zov96 9 месяцев назад

    Thank you friend! I really helped with the setup. I had an account error. With love from Russia!

  • @ratm8619
    @ratm8619 9 месяцев назад +2

    Hello and first of all thank you very much for your fabulous explanations in advance.
    I don't know if you're still dealing with the topic at all?!
    I've now managed to get it so far that I can switch on the PC...
    It just can't be turned off... I'm using Win 11 64 bit version and my PC has been turning on at 12:00 a.m. for whatever reason since I tried it...
    I would be happy if you could help me with this...
    Thank you very much in advance..

  • @simonalsbirk6973
    @simonalsbirk6973 3 года назад +2

    Great video, wake on lan works great, and it was a very elegant way to implement it!

    • @KPeyanski
      @KPeyanski  3 года назад

      Great to hear! Are you going to try RPC Shutdown as well or you are not on Windows?

  • @chrisrosenkreuz23
    @chrisrosenkreuz23 2 года назад +1

    btw I love the end song :D and thank you for the content, you always have my likes

    • @KPeyanski
      @KPeyanski  2 года назад +1

      Really, thanks for letting me know :) I will put it back as I removed it during my last several videos. Also, many thanks for the likes :)

  • @ChrisBogle
    @ChrisBogle Год назад +3

    Thanks for the tutorial. Everything was clear & concise. The regedit download file worked precisely. Just one question, any ideas how to hibernate instead of shutdown using RPC. My pc is a bit old and will not wake from full shut down. A work around is to set power settings to hibernate after "period of time" inactivity but it would be nice to use Home Assistant for both. BTW I pressed the 👍 button & subscribed. I'm hooked on HA. LOL

  • @CrypticConsole
    @CrypticConsole 3 года назад +4

    If you don't have ethernet for WOL you can use a smart plug to turn on the pc. In the bios you just enable power on on AC under power management.

    • @KPeyanski
      @KPeyanski  3 года назад +2

      Thanks for tip - very true! I'm using this approach for my NAS for a long time and it is very useful.

    • @-vermin-
      @-vermin- 2 года назад +1

      That's a great way to develop file system corruption.

    • @CrypticConsole
      @CrypticConsole 2 года назад

      @@-vermin- who cares? Obviously you have a backup anyway.

    • @-vermin-
      @-vermin- 2 года назад

      Sure but I prefer not to make work for myself when it can be easily avoided by not doing stupid things.

    • @CrypticConsole
      @CrypticConsole 2 года назад

      @@-vermin- automatic backups

  • @Cr4z33_YT
    @Cr4z33_YT 2 года назад +1

    @KPeyanski you were right at saying that some computers won't turn on if they were shutdown instead of being put into Sleep mode.
    In fact mine doesn't turn on after using RPC Shutdown so it's completely useless. 😕

    • @KPeyanski
      @KPeyanski  2 года назад

      Try with wake on lan ;)

    • @gergoschwahofer6647
      @gergoschwahofer6647 2 года назад

      Its right. wake on lan does not work if computer was shutdowned with rpc shutdown!

  • @DanielWaldock-r2t
    @DanielWaldock-r2t Год назад +1

    thanks for the video i used this to setup up wake on lan for both by pcs and it works fine however for one of my pcs rpc shutdown wont work any ideas ???

  • @Hasse-swe
    @Hasse-swe 6 месяцев назад

    Thanks for the guide. Works like a charm.

    • @KPeyanski
      @KPeyanski  6 месяцев назад +1

      Great to hear! Enjoy!

  • @ASBoas
    @ASBoas 2 года назад +1

    This is a great guide... but for some reason, the turn off are not working for me, when I click the button again, it just resends the wake_on_lan command, like it has no clue that my computer is on... is there a sensor I need to add?

  • @calcioscacchi
    @calcioscacchi 2 года назад +3

    Hi! Great and usefull video. WoL works perfectly. But i've troubles with RPC. What about if I didn't install HA OS but HomeAssistant Core via docker instead? I can't find the RPC Shutdown application anywhere.

  • @joelfrojmowicz
    @joelfrojmowicz 3 года назад +2

    As always, another great video. Keep up the good work!!

    • @KPeyanski
      @KPeyanski  3 года назад

      Thanks, will do! Actually my new video is scheduled for later today - 17:30 UTC :)

  • @herrstoy4766
    @herrstoy4766 Год назад

    Thank you so much for this very helpful and precise tutorial! You made my day!

  • @brawlprodik1937
    @brawlprodik1937 2 года назад +1

    did everything as per this tutorial, but can't get it working, log says: Shutdown of remote machine failed
    result was: WERR_CALL_NOT_IMPLEMENTED

  • @joelfrojmowicz
    @joelfrojmowicz 3 года назад +3

    Can you do some videos about advanced automations in NodeRed? I think many of us will appreciate...

    • @KPeyanski
      @KPeyanski  3 года назад +1

      I thought about this many times, but I should probably create a video about basic Node-RED automations first, and then to continue with advanced. Also they should be around certain theme as the topic is too broad. Do you have an idea about specific topic or theme about such video?

    • @joelfrojmowicz
      @joelfrojmowicz 3 года назад +1

      @@KPeyanski There are several basic NodeRed videos on YT. The advanced videos are lacking... But maybe the best approach is to define some projects and then implement them using basic and advanced features on NodeRed and HomeAssistant. You can start with some more basic examples like notify user when an update is available or send a notification when some movement is detected, Disable all notifications when a switch is off in HA. But I'm interested in some more complex examples like: An alarm system using NodeRed, Notifications with Actions using Android APP and NodeRed, Integrate Alexa in HA with Nodered to respond to custom commands, others... If you need more examples, please ask!

  • @GC_397
    @GC_397 5 месяцев назад +1

    hi great video but I have a problem I get an error message when I press the button Failed to call the switch/turn_off service. Not a valid add-on slug for dictionary value @ data['addon'] and all the rest of the code is good with the modifications made but rpc shotdown is not ordered to be activated

  • @lubenbroadcasting986
    @lubenbroadcasting986 Год назад

    Good job, thanks a lot!
    I do have one little problem, maybe someone else reported it too
    After my PC shut down, it restarts itself after a few seconds.
    Ever heard that before?

  • @AKC-81
    @AKC-81 2 года назад

    Your video really helped me allot. I'm able to power ON/OFF my desktop PC's via HA.
    Is there a script to just put them to sleep rather than power off?

  • @GagliardiPhotography
    @GagliardiPhotography 2 года назад +1

    Thanks for the video. However I have HA on docker and the procedure doesn't seem to work. Do you know if I need a different configuration to make it work?

  • @juliangerdshikov8075
    @juliangerdshikov8075 3 года назад +3

    Friend, you need to Switch Off fast start - then wol will Work after shutdown every time and Not only at sleep. ;-) Fast start is to found in Energy setings, in left Menü click on what should Happen when Press Power Button, there is fast start which make Vera offen Problems Witz wol. Sorry for my english ;-)

    • @KPeyanski
      @KPeyanski  3 года назад +2

      Thanks for the tips! I will try this and I will update my article if it is working fine. Thanks once again!

    • @josecorreia2584
      @josecorreia2584 3 года назад

      @@KPeyanski I did that with an automation simulating a temporary switch. Plattform=state and call a service as action switching it OFF after a configurable time, in my case 5 seconds, which is enough time to send a magic package.

    • @chrisrosenkreuz23
      @chrisrosenkreuz23 2 года назад

      I found your comment and it made me look into things. You might want to consider going the exact opposite way on that...
      By selecting hybrid sleep and fast boot you're effectively making your computer shut down and save a copy of the kernel state on its hard drive and then when you're waking it you're basically powering it on and it remembers that state. It doesn't matter if your computer doesn't work with power off to wake on lan because essentially it does. It's just not called that way, but it uses 0w total power in hibernation state.

  • @iblum1672
    @iblum1672 2 года назад

    Great tutorial, but sorry, in my case the WOL function not working, the switch does not have any effect on my computer and shutdown too, I write correct informations like IP and MAC, same name for the switch and addon, nothings work :/

  • @maxmomo6919
    @maxmomo6919 Год назад

    Thx for the Tutorial. But I have big concern in terms of security. For RPC Shutdown you put in plain text configuration your pc user and password. Guess what happend, if your homeassistant is hacked. Do you have a security workaround for that? WOuld be nice! Thx

  • @Saphiro121
    @Saphiro121 2 года назад +2

    @KPeyanski Thanks for the tutorial, it was very helpful. I have a question; the switch doesn't show the on state of the pc. Is is always shown as "off". I use Google Assistant to control the PC boot and shutdown but the switch should be able to show the state correctly, right? Thanks

    • @Saphiro121
      @Saphiro121 2 года назад +5

      I found the solution. If anyone has the same problem: Solution is to activate the network discovery on windows.

    • @KPeyanski
      @KPeyanski  2 года назад

      Thanks, for commenting and that you share your tips/solution to the problem :)

  • @Kevin-rf9sx
    @Kevin-rf9sx 7 месяцев назад

    What do i need to type in the credentials if i dont have set password for my pc?

  • @toukevable
    @toukevable 3 месяца назад

    wake on lan enabled on bios, wake on magic packet also enabled on windows but nothing happening, even in sleep mode :(

  • @vetulamortem
    @vetulamortem 3 года назад +1

    If this works you shall have my Like :D
    edit
    Here you go, you have earned that like :D

    • @KPeyanski
      @KPeyanski  3 года назад

      Very glad to hear that it worked and thanks for the like 👍

  • @lehoff
    @lehoff Год назад

    WOL works well but I cannot get RPC shutdown as I don't have the add on store - is there a manual way of installing it?

  • @hyper_pm
    @hyper_pm 2 года назад

    How can I trigger this shutdown switch in a script? I choose Action type: Device, Device: RPC Shutdown, but the Action section is greyed out.

  • @tommyzone
    @tommyzone 2 года назад +1

    top thanks for your help 👍

  • @chrisrosenkreuz23
    @chrisrosenkreuz23 2 года назад +1

    By selecting hybrid sleep and fast boot you're effectively making your computer shut down and save a copy of the kernel state on its hard drive and then when you're waking it you're basically powering it on and it remembers that state. It doesn't matter if your computer doesn't work with power off to wake on lan because essentially it does. It's just not called that way, but it uses 0w total power in hibernation state.

    • @KPeyanski
      @KPeyanski  2 года назад +1

      Thanks for the info and tips. Appreciate that!

  • @fabianistrate5470
    @fabianistrate5470 9 месяцев назад

    Hi! What can I put for the password, if my desktop doesn't have a password?

  • @gasparem16
    @gasparem16 3 года назад +1

    great video! thanks!

    • @KPeyanski
      @KPeyanski  3 года назад

      Glad you liked it! Check my other videos as well!

  • @ЛёхаБукреев
    @ЛёхаБукреев Год назад

    somehow Entity for button card did not appear after adding a switch to yaml file and restarting the configuration. What could be wrong?

  • @louisviciedo
    @louisviciedo 2 года назад

    Hi, another great video. Will WOL work on laptop on Wi-Fi?

    • @KPeyanski
      @KPeyanski  2 года назад

      I guess, you have to try...

  • @denisegiuliadoganaelanciot7438
    @denisegiuliadoganaelanciot7438 2 года назад

    hello great guide! I integrated it and everything works correctly, I ask you another information if I can:
    when you click on the action of turning off the pc, a text also appeared that says: home assistant is shutting down this pc ... "how did you put this message? where can I insert it? it just says" -null "to me
    Thank you

    • @philgriffiths1970
      @philgriffiths1970 2 года назад

      If you check from 4:27, you can see this message is entered in the add-on configuration

  • @Raddeko
    @Raddeko 3 года назад +1

    What should I enter if I do not have a password set on my PC ?

    • @KPeyanski
      @KPeyanski  3 года назад

      create a separate user (with admin rights) just for the rpc shutdown

  • @666bigl
    @666bigl 10 месяцев назад +1

    wow, dirty keyboard, good tutorial

    • @KPeyanski
      @KPeyanski  10 месяцев назад

      Thanks for noticing :)

  • @gegc2003
    @gegc2003 2 года назад

    Perfect on my widows 10 pcs but shutdown not working on any of my windows 11 pcs. Anyone had this problem? It’s definitely some setting that needs changing in win11 pcs

  • @IcyTone1
    @IcyTone1 2 года назад

    i cant turn it off on windows 11, i can only turn on my pc. tips?

  • @franois33
    @franois33 2 месяца назад

    RPC Shutdown isn’t very great for security purposes. I’m not a fan with settings my Windows login credentials into Home Assistant. I will develop myself a solution, I think’s to a windows service listening for a webhook sended from HA. I just need to know how to make a switch on HomeAssistant to make an HTTP GET Request and set the switch state depending on HTTP Response.
    I would like to make automation with this switch too. Is a switch a good option or would I rather need to make an entity ? (I’m new to Home Assistant)

    • @darkhummy
      @darkhummy 2 месяца назад +1

      Just create a local windows account on the machine and give those credentials to rpc shutdown.

    • @franois33
      @franois33 Месяц назад

      @@darkhummy I don’t tried your solution but I use HAAS Agent now. This open source is very complete. Don’t need the recreate the wheel…

    • @darkhummy
      @darkhummy Месяц назад

      @@franois33 I looked at HAAS Agent but It didn't list shutting down/turning on via PoE as a feature, is it included without extra work?

    • @franois33
      @franois33 Месяц назад

      ​@@darkhummy HAAS Agent allows the shutdown, standby, hibernate the system and also shutdown screens and waking up NATIVELY yes.
      Concerning the waking up of the computer, HAAS Agent, a simple Windows service or application cannot do that. The WoL is designed for that, it is a feature supported in your motherboard, which must be activated in the UEFI/Bios, then also in Windows (Network card properties, power saving panel).
      Then you just need a small utility to send a magic packet, for my part I can do it natively from HomeAssistant with a switch.

  • @Jimmo910
    @Jimmo910 3 месяца назад

    Чувак, ты показываешь yml файл, как ты его открыл? Я открыл редактор, и у меня белый лист. Как ты открываешь /config/configuration.yaml ??????????????????????????????

  • @Drinkyoghurt
    @Drinkyoghurt 3 года назад

    I'm still having an issue where WOL works if my computer is sleeping but not when it's shut down. I can shut it down with RPC but can't turn it back on with the button again. I have ErP enabled in bios as well as Allow PCIe devices to wake up computer. I have an Msi B450 gaming pro carbon AC (dumb name) and am at a loss of what I'm doing wrong here.

    • @KPeyanski
      @KPeyanski  3 года назад

      Sorry, but I can't help much here.

  • @gravetender
    @gravetender 2 года назад +1

    lifesaver! amazing! +1 like, +1 sub

    • @KPeyanski
      @KPeyanski  2 года назад

      Wow, thanks for the sub & like. Glad I could help!

  • @Jucyo
    @Jucyo 3 года назад

    hello, possible to integrate Google assistant to run the homeassistant WOL thing?

    • @KPeyanski
      @KPeyanski  3 года назад +1

      I have no much experience with Google Assistant so I cannot say exactly. Maybe some else will jump in and answer your question. It will be interesting to understand.

  • @williambravin1254
    @williambravin1254 Год назад

    hello my windows pc do not need user name and password what do i inser in this case?

    • @KPeyanski
      @KPeyanski  Год назад

      Create a new admin user and add a password to that user and use it

  • @kelvinfleuty6496
    @kelvinfleuty6496 3 года назад

    Followed your tutorial HA says the addon is working but go to the logs and there is nothing, any ideas?

    • @KPeyanski
      @KPeyanski  2 года назад

      Strange, try to restart HA and check the logs both on the add-on and the HA

    • @kelvinfleuty6496
      @kelvinfleuty6496 2 года назад

      @@KPeyanski
      Thanks got it working last night, it was the state, it was saying it was off when I changed it to on, it then worked and shut down.

  • @LuisPeris
    @LuisPeris 2 года назад

    Hi, very good video. I have configured WOL, but shutdown requires windows user/password. How do i configure rpc shutdown if i havent password for current user? Thanks in advance

    • @KPeyanski
      @KPeyanski  2 года назад

      I guess you have to create another local user with admin rights.

    • @LuisPeris
      @LuisPeris 2 года назад

      @@KPeyanski thanks, i'll try asap

    • @BluelightGaming1
      @BluelightGaming1 2 года назад

      @@LuisPeris did you get this to work cause I'm having the same issue.

    • @LuisPeris
      @LuisPeris 2 года назад

      @@BluelightGaming1 no, i didnt

  • @AndersJytzler
    @AndersJytzler 2 года назад

    How do i add multiple computers in the RPC Shutdown Configuration? I have tried with an added - alias, but i get "Invalid YAML"

    • @chrisrosenkreuz23
      @chrisrosenkreuz23 2 года назад

      it's probably spacing, yaml is a fickle mistress

    • @KPeyanski
      @KPeyanski  2 года назад +1

      watch out for correct indentation and missing/too many dashes (-)

    • @AndersJytzler
      @AndersJytzler 2 года назад

      Yes it was something like that, but im not sure exactly what i did.. But it works now! Thanks alot for great video and good explanation

  • @parolys_
    @parolys_ 3 года назад +1

    Cool

    • @KPeyanski
      @KPeyanski  3 года назад +1

      Glad you like it :)

  • @Fine_i_set_the_handle
    @Fine_i_set_the_handle 2 года назад

    4:50 You kind of glazed over a serious explanation here....... am i supposed to use my microsoft account email? or the name it assigns as your username based off the email?? do i use the password for the windows account or the password for the user account or the pin?????? . What happens if my username has an apostrophe in it or a space??

    • @KPeyanski
      @KPeyanski  2 года назад

      local admin account is needed. And you can create one only for this purpose without any special characters inside.

  •  3 года назад

    is it working for Mac?

    • @KPeyanski
      @KPeyanski  3 года назад

      Home Assistant Wake on LAN will work at 99%, but you have to try it. The Shutdown will not work

  • @koriakinides
    @koriakinides 2 года назад

    🤣3:34 priceless

  • @iwandevries4734
    @iwandevries4734 3 года назад

    I did everything what you did/said in this video.. step by step. Buy It’s still giving me the error: The username or password was not correct.
    Connection failed: NT_STATUS_LOGON_FAILURE. Ip address is good and static. I did ever step and did everything what u said... I looked all over google but can’t find anythingg.. Please help me
    Edit: It doesn't turn on or off. I tried every user and password. From my computer and microsoft account. Current config is using my C:/user and password is my password for my pc

    • @KPeyanski
      @KPeyanski  3 года назад

      Are you using local user with administrator rights? Also what version is your operating system exactly?

    • @iwandevries4734
      @iwandevries4734 3 года назад

      @@KPeyanski windows 10 home with one user with admin

    • @KPeyanski
      @KPeyanski  3 года назад

      @@iwandevries4734 is it an online user or local?

    • @iwandevries4734
      @iwandevries4734 3 года назад

      @@KPeyanski Online (Microsoft) Thank you for helping me :)

    • @KPeyanski
      @KPeyanski  3 года назад

      @@iwandevries4734 make a local user with admin rights and use it instead of the online user. It should work that way.

  • @totte1015
    @totte1015 Год назад

    Came here to get it to work, an when you mention configuration.yaml im like WTF IS THAT
    So.... This is not really a how to because you dont explain what it is

    • @gambler3k
      @gambler3k 7 месяцев назад

      if u don't know what configuration.yaml is u should watch some basic setup videos..