Created
November 21, 2022 17:48
-
-
Save randybb/684e21130efdd54d5a6edec677296e3a to your computer and use it in GitHub Desktop.
ESPHome systemd service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source /srv/esphome/bin/activate | |
/srv/esphome/esphome /srv/esphome/ dashboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Home Assistant - ESPHome Dashboard | |
Wants=network-online.target | |
After=syslog.target network.target mosquitto.service | |
[Service] | |
WorkingDirectory=/srv/esphome | |
User=homeassistant | |
Type=simple | |
ExecStart=/srv/esphome/esphome-dashboard.sh | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment