![]() Add this line last in the file: hass ALL=NOPASSWD:/usr/sbin/pm-suspend, where you replace hass with the name of your user on the target, if different, and /usr/sbin/pm-suspend with the command of your choice, if different. On the target, using an account with sudo access (typically your main account), sudo visudo.On my system, this is /usr/sbin/pm-suspend. I use this project to power my PC based NAS remotely on and off via Home Assistant as alternative to Wake-On-Lan. First, get the full path: which pm-suspend. Here is it pm-suspend, use poweroff to turn off the computer. On the target, we need to let the hass user execute the program needed to suspend/shut down the target computer.On the server, verify that you can reach your target machine without password by ssh TARGET.Enter the password you created in step 3. On the server, transfer your public SSH key by ssh-copy-id where TARGET is your target machine’s name or IP address.What type of installation are you running Home Assistant Container. What was the last working version of Home Assistant Core Im not sure, but somewhere last year it stopped working. If you do, you can leave out in the SSH commands below. What is version of Home Assistant Core has the issue 2021.3.4. It’s recommended using the same user name as on the server. Just press enter on all questions except password. The WOL switch can only turn on your computer and monitor the state. On the target, create a new account that Home Assistant can ssh into: sudo adduser hass. The wakeonlan (WOL) switch platform allows you to turn on a WOL enabled computer.Wake on LAN must be enabled on the TV for this to. If the integration knows the MAC address of the TV from discovery, it will attempt to wake it using wake on LAN when calling turn on. On the server, create SSH keys by running ssh-keygen. After saving the YAML configuration, the TV must be turned on before launching Home Assistant in order for the TV to be registered the first time.On the server, log in as the user account Home Assistant is running under. Lets say you are working from home and need to send an important file to your associate but the file is stored on your office computer which is offline. The wakeonlan integration enables the ability to send magic packets to Wake on LAN capable devices to turn them on. For the 2021.4: For our advanced users - Home Assistant (home-assistant.io) update - I think it is critical to tell people that they must enter their desired z-wave device configuration parameters and then leave the page loaded for at least as long as it takes for the target device to check in.Suggested recipe for letting the turn_off script suspend a Linux computer (the target)įrom Home Assistant running on another Linux computer (the server). Common for webOS 3.0 and higher would be to use WakeOnLan feature. Here are some real-life examples of how to use the turn_off variable. Home Assistant is able to turn on an LG webOS Smart TV if you specify an action, provided by an integration like HDMI-CEC or WakeOnLan. PS - power on/off cycles were done by Android phone and win10 laptop, both WiFi.The port to send the magic packet to. Homeassistant in a NAS container, z1000 pro, all wired 1Gbps, same subnetwork. When powered up zidoo - interface up and initialized since. On second thought, seams logical that when I started the homeassistant container, zidoo was unavailable and it could not initialize the interface/ignored it. ![]() Then I powered Zidoo with the RC (btw - the RC power button is always IR, while the rest have BT) and since then everything was OK, meaning I powered off/on by Homeassistant several times (about 10) in different time lapse periods, greatest 5 hours (cause I had a suspicion and wanted to check if it enters in a kind of "deep" sleep mode). The only exception was yesterday, when I restarted the NAS (late in the night), and forgot to start Homeassistant container. Power off brings my Zidoo Z1000 Pro in stand by, as configured. Want to share my experience on the above topic, so far.įirst things first - strange enough in my setup WoL works flawlessly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |