How to clear and refresh persisted sensor states in Site Controller

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).

Prerequisites

  • Terminal access to the Site Controller instance
  • root privileges (e.g. sudo permissions)

Verify if sensor states are empty or outdated

Check the sensor states in *Admin Live Table*, sensors of type boolean will show no state and time stamp information (cells will be empty).

Clearing mosquitto persistence

Linux (Ubuntu, Rapsbian, Debian, ...)

  1. Login to the Site Controller terminal (Linux command line), stop Site Controller and especially mosquitto

  2. Execute the below command. It will extract the mosquitto persistence path from the configuration file and rename it with a backup extension

  3. Restart Site Controller