• cd /home/openhabian
• mkdir bin
• cd bin
• git clone https://github.com/tomquist/solix2mqtt.git
• cd solix2mqtt
• npm install && npm run build
• gesicherte Datei “S:\SmartHome\SmartHome Konfigurationsdateien\home\openhabian\bin\solix2mqtt.service” nach „/home/openhabian/bin/solix2mqtt.service“ hochladen
• cd /etc/systemd/system
• sudo ln -s /home/openhabian/bin/solix2mqtt.service solix2mqtt.service
• sudo systemctl daemon-reload
• sudo systemctl start solix2mqtt
• sudo systemctl enable solix2mqtt
My solix2mqtt.service, to be edited:
Code: Alles auswählen
[Unit]
Description=Collector of the Anker Solix Cloud Data
After=mosquitto.target network-online.target
Wants=mosquitto.target network-online.target
[Service]
SuccessExitStatus=143
User=root
Group=root
Type=simple
Restart=always
RuntimeMaxSec=1d
WorkingDirectory=/home/openhabian/bin/solix2mqtt
Environment="S2M_USER=<email address at anker>"
Environment="S2M_PASSWORD=<password at anker>"
Environment="S2M_COUNTRY=DE"
Environment="S2M_MQTT_URI=mqtt://smarthome:1883"
Environment="S2M_MQTT_TOPIC=solixSpeicherPV"
Environment="S2M_VERBOSE=true"
ExecStart=npm run start
ExecStop=/bin/kill -15 $MAINPID
[Install]
WantedBy=multi-user.target