CyberDNS / Lupusec2Mqtt

Lupusec Alarm System to Mqtt
MIT License
11 stars 6 forks source link
alarm home-assistant homeassistant lupusec mqtt smarthome

Lupusec2Mqtt

Make your Lupusec XT2 (and compatible) Alarm System available on an MQTT Broker (compatible with Home Assistant).

Tested with

What is already working

Installation

Home Assistant Addon

It is available as Addon that can be directly installed by the Supervisor tab.
The repository is: https://github.com/CyberDNS/hassio-addons-repository

Manual Docker Configuration

Alternative 1: Environment variables

For users who want to run Lupusec2Mqtt as a standalone Docker container (not as a Home Assistant addon), you can use the following docker run command as an example for the amd64 architecture:

docker run -e "Mqtt__Server=127.0.0.1" -e "Mqtt__Login=" -e "Mqtt__Password=" -e "Lupusec__Url=http://192.168.2.50" -e "Lupusec__Login=admin" -e "Lupusec__Password=lupusecpassword" -e "MotionSensor__DetectionDuration=120" -e "Serilog__MinimumLevel__Default=Information" cyberdns/lupusec2mqtt_hassaddon_amd64:3.1.2

Replace the architecture in the last part of the image name based on your system:

"arch": [
    "aarch64",
    "amd64",
    "armhf",
    "armv7"
]

Alternative 2: Volumes

An alternative approach is to use Docker volumes. The settings are located in the container at /data/options.json. The file should look like this:

{
"Mqtt:Server": "127.0.0.1",
"Mqtt:Login": "",
"Mqtt:Password": "",
"Lupusec:Url": "http://192.168.2.50",
"Lupusec:Login": "admin",
"Lupusec:Password": "lupusecpassword",
"Serilog:MinimumLevel:Default": "Information",
"MotionSensor:DetectionDuration": 120,
"PollFrequencyInSeconds": 2
}