aboutsummaryrefslogtreecommitdiffstats
path: root/tasmota-proxy.service
diff options
context:
space:
mode:
Diffstat (limited to 'tasmota-proxy.service')
-rw-r--r--tasmota-proxy.service23
1 files changed, 23 insertions, 0 deletions
diff --git a/tasmota-proxy.service b/tasmota-proxy.service
new file mode 100644
index 0000000..1776c42
--- /dev/null
+++ b/tasmota-proxy.service
@@ -0,0 +1,23 @@
+[Unit]
+Description=Tasmota energy proxy for Homepage
+After=network-online.target
+Wants=network-online.target
+
+[Service]
+ExecStart=/usr/bin/python3 /opt/tasmota-proxy/tasmota_proxy.py
+Environment=TASMOTA_PLUGS=ac=172.16.34.176,washer=172.16.34.127,dishwasher=172.16.34.149,pc=172.16.34.118,spare=172.16.34.186
+Environment=PORT=8099
+Environment=RATE_MARGINAL=0.17598
+Environment=RATE_ALLIN=0.2754
+Environment=HISTORY_DB=/var/lib/tasmota-proxy/history.db
+Restart=always
+RestartSec=5
+DynamicUser=yes
+StateDirectory=tasmota-proxy
+NoNewPrivileges=yes
+PrivateTmp=yes
+ProtectSystem=strict
+ProtectHome=yes
+
+[Install]
+WantedBy=multi-user.target