fsmoreno
(Fsmoreno)
1
I have problem similar to this one.
but the solution to this post did not work in my environment
- platform: wake_on_lan
name: windows_pc
mac_address: !secret pc_mac
turn_off:
- service: notify.chrome
data:
message: "desligar computador"
- platform: wake_on_lan
name: storage_pc
mac_address: !secret storage_mac
turn_off:
- service: shell_command.poweroff_storage
fsmoreno
(Fsmoreno)
2
[Unit]
Description=Home Assistant for %i
After=network.target
[Service]
Type=simple
User=%i
ExecStart=/srv/homeassistant/bin/hass -c "/home/%i/.homeassistant"
Environment=PATH="$VIRTUAL_ENV/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/sbin:/bin:$PATH"
SendSIGKILL=no
[Install]
WantedBy=multi-user.target