OpenHUB6 is open, developer-friendly firmware for Safe. This project is not affiliated with or endorsed by HUB6 Inc.
OpenHub Home Assistant and Telegram Messenger Notifications
Important
You must have William Franzin's OpenHub image installed and working on your Safe device. Or build the image yourself, as I haven't tried.
- Connect to OpenHub from your laptop (192.168.255.1)
- Install Mosquitto MQTT Client on OpenHub
- First remove libmosquitto-ssl (I'm not using SSL in MQTT)
- Menu: System➡️Software➡️Installed Tab
- Click the remove button beside libmosquitto-ssl
- Download the following Mosquitto packages to your laptop from:
- Package List
- libmosquitto-nossl_1.6.15_mips_24kc.ipk
- mosquitto-client-nossl_mips_24kc.ipk
- Upload the above packages
- Menu: System➡️Software➡️Upload Package Button
- First remove libmosquitto-ssl (I'm not using SSL in MQTT)
- Install openssh-sftp-server (easier to upload files)
- Upload the two new config files here to OpenHub /etc/config/:
- alarm-event
- alarm-notify
- Upload the two new User Interface file here to OpenHub /usr/lib/lua/luci/model/cbi/security-module/:
- alarm-notify.lua
- alarm-event.lua
- Upload the updated Menu file here to OpenHub /usr/lib/lua/luci/controller/security/:
- security.lua
- Upload the new Event Notifier scripts here to OpenHub /root/:
- notify-home.sh
- notify-push.sh
- notify-telegram.sh
- You will need to change the "file permissions" on the Event Notifier scripts.
- Include the ability to "Execute" the script
- Upload the updated DSC IT-100 Listener script here to OpenHub /usr/bin/:
- dsc-it100
- Reload the dsc-it100 script:
- Open the Luci User Interface (192.168.255.1)
- System➡️Startup➡️dsc-it100➡️RESTART
Add to your configuration.yaml:
- The configuration.yaml is found here
- Add and name your zones to match with your alarm panel
- Update the "device_class" to the type of sensor
- Create a bot
- Enter @Botfather in the search tab and choose this bot.
- Enter “/newbot” and enter the name for your bot
- Copy the HTTP API token (Add to OpenHub)
- Click the link to your new bot.
- Press or type "/start"
- Log in to Openub Luci interface (192.168.255.1)
- Go to the Notifications Tab and add your Telegram API token & Chat ID