Abstract
It might be necessary to force a refresh of all sensor states, especially binary ones, manually. This guide will explain how to clear the local mosquitto persistence file and restart the Site Controller which will force a local re-evaluation of all states and transmission to the azeti Engine instance (MQTT broker).
...
Clearing mosquitto persistence
Linux (Ubuntu, Rapsbian, Debian, ...)
Login to the Site Controller terminal (Linux command line) and execute the below command. It will extract the mosquitto persistence path from the configuration file and rename it with a backup extension
Code Block sudo awk '/persistence_location/ { db_file=$2"mosquitto.db"; system("mv "db_file" "db_file".bak") }' /etc/mosquitto/mosquitto.conf
Restart Site Controller
Code Block sudo "/opt/azeti/SiteController/run_SiteController.py" restart
...