LoginSignup
0
0

More than 3 years have passed since last update.

Raspberry pi homeassistant core autostart

Posted at

Hass を自動起動するための設定。

準備

$ mkdir -p ~/.config/lxsession/LXDE-pi
$ cp /etc/xdg/lxsession/LXDE-pi/autostart ~/.config/lxsession/LXDE-pi/
$ nano ~/.config/lxsession/LXDE-pi/autostart

~/.config/lxsession/LXDE-pi/autostartの内容

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
lxterminal -e sudo -u homeassistant -H -s /home/pi/hass.sh

/home/pi/hass.shの内容

hass.sh
#!/bin/bash
cd /srv/homeassistant
source bin/activate
hass
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0