Home Assistant integration for Lupus Security (also known as "Lupusec") alarm devices through MQTT. Tested with the Lupusec XT2 Plus and Lupusec XT3 models.
This is a private project. It's not affiliated with or endorsed by "Lupus Security". The source code is published as open source under the MIT license.
- Arming/disarming the alarm.
- Door/window sensors status (open/closed).
- Turning the internal switch on/off.
- Reporting alarm states (burglar, doorbell, etc). See config.ini.dist for full list.
- Only one area is supported (the Lupusec XT3 can theoretically manage two areas).
- Only one "Home" mode is supported (the Lupusec XT3 can theoretically manage up to three home modes).
- Sensors without names are ignored.
Copy config/config.ini.dist to config/config.ini and adjust the settings to your environment.
- The "DeviceName" is used for the MQTT paths as well as for the entity names in Home Assistant, so only use alphanumerical characters or underscore.
- The "Manufacturer" and "Model" are used for the labels in the HomeAssistant entity list.
Next, you need to install the requirements:
pip3 install -r requirements.txt
The application can then be run using:
python3 main.py
Prepare the config file as described above.
You can build your docker image:
docker build -t lupus-to-mqtt .
and then run it using docker-compose:
docker-compose up
On the development server (where you built the docker image):
# Export the image
docker save -o lupus-to-mqtt.tar lupus-to-mqtt
# Upload it to the target server
scp lupus-to-mqtt.tar username@server:/volume1/docker/lupus-to-mqtt/
On the target server:
cd /volume1/docker/lupus-to-mqtt/
# Import the image
sudo docker load -i lupus-to-mqtt.tar
Afterwards, use docker-compose as above.
You can add the following card to your Lovelace UI:
type: alarm-panel
states:
- arm_away
- arm_home
entity: alarm_control_panel.lupus_to_mqtt
name: Alarmzentral
The suffix "lupus_to_mqtt" corresponds to whatever you set as the device id in your config file.