There is built-in support in the forum’s editor for formatting source code, no need for images of the source code and people can just copy-and-paste your configuration.
Here is a total newbie and dumb question for you. In your setup is the host: 192.168.x.x, is that the computer being woken up, the router, or the HA host. I’ve seen host used in all three instances so I’m a little lost. Thanks
Ok follow up, is there a special program that needs to download to make that work. I have the Computer begin woken up ip address and it’s not showing any change at all. Thanks
Just a quick note: WOL isn’t supported since Windows 8 - it collides with fast-boot as far as I can recall. You might need to disable this feature in order to get WOL back.
I can turn on and off my computer, it’s just the feedback that doesn’t work. I didn’t specify that very well. It made sense in my mind. I followed your set up at the begining of the post and that works great. I can turn it on and off from anywhere. The feedback saying if it’s on just doesn’t work. At the moment I’m using a template to change being home to on and not_home to off then doing it that way. It works, but it takes 2-3 minutes to get the actual reading.
not quite, I’m having a hard time expressing my question. The switch once I turn my computer on the switch shows it as off, and doesn’t change to on. I have to use a template sensor to make the switch move, which takes 2-5 seconds to show a change. If the switch doesn’t change I can’t turn it off cause it’s saying it’s off.
host (Optional): The IP address or hostname to check the state of the device (on/off). <— this is what I can’t get to work. Checking the state of my computer being woken up.
I appreciate the help so far. Now I can also do the tts stuff, I wasn’t planning on it, but now I have a direction to to when I want to. That is what I love of this community. There is always someone somewhere willing to help. Thanks for all the info guys.
homeassistant.bootstrap: Invalid config for [switch.command_line]: [offcmd] is an invalid option for [switch.command_line]. Check: switch.command_line->switches->pc->offcmd.
There was a breaking change in the update 0.28 for de command line switch component.
“offcmd” needs to be changed to “command_off”
“oncmd” needs to be changed to “command_on”
you did also setup the customize part correctly. so that the switch.copy is not hidden.
Then what you can try is to temporarily delete the default_view: group. (if you have that one).
You should see alle your devices in de home tab after restart. So the missing switch should pop-up also.
First off thanks for posting this, I hadn’t thought of using net rpc to shutdown computers.
However, I cannot seem to get it running. Using YAMLlint I have a valid setup but Home Assistant doesn’t like it.
16-09-24 18:09:53 homeassistant.bootstrap: Invalid config for [switch.command_line]: [Desktop] is an invalid option for [switch.command_line]. Check: switch.command_line->switches->Desktop.
Username and password (removed above) and IP address are all correct and work in putty to shut down the computer. The error seems to be somewhere in how my switches are setup. I tried using a phrase other than desktop but that didn’t help.