PiAlarmAdapter

Application to manage contact sensors and send messages with state change to an MQTT Broker.
Install
You can use pip directly through the command:
pip install pi_alarm_adapter
Settings
Environment variables
LOG_LEVEL | INFO | Level of logger. Valori possibili: DEBUG, INFO, WARNING, ERROR |
MQTT_BROKER_URL | 127.0.0.1 | IP address of the MQTT broker |
MQTT_BROKER_PORT | 1883 | Port number of the MQTT Broker |
MQTT_USERNAME | admin | Username that can post messages on queues |
MQTT_PASSWORD | admin | password of the user above |
For sensor configuration, add environment variables in the format:
SENSOR_<NOME_SENSORE>=<PIN_NUMBER>
Example: SENSOR_BEDROOM=4
ToDo List