[Unit] Description=Simple service to start esphomeapi StartLimitIntervalSec=100 StartLimitBurst=5 [Service] Type=simple EnvironmentFile=%h/energyscripts/.env WorkingDirectory=%h/energyscripts ExecStart=%h/energyscripts/venv/bin/python3 -u scripts/esphomeapi.py -a %i Restart=on-failure TimeoutStopSec=70 RestartSec=30 SyslogIdentifier=%N [Install] WantedBy=default.target