steefdebruijn wrote: About starting the thing on a raspberry pi: that system (I use dietpi but others probably the same) uses systemd. So to use it unattended and autostart on boot, create a systemd service file (example below) and enable and start it.
The file (place in /etc/systemd/system/comfort2.service):
[Unit]
Description=Cytech Comfort to MQTT bridge
After=local-fs.target network.target
[Service]
Type=simple
ExecStart=/usr/bin/python3 /root/comfort2.py
[Install]
WantedBy=multi-user.target |
Enable and start it:
systemctl daemon-reload
systemctl enable comfort2
systemctl start comfort2 |
Steef Anyone any tips or pointers on how to implement this on a RPI running HASSOS. I dont have the above directory ?
I notice my comfort connection only runs when I have terminal window open and when i start the comfort2.pi
Attachment: hassos.JPG (Downloaded 53 times)
|