Skip to content

OpenHUB6 is open, developer-friendly firmware for Safe This project is not affiliated with or endorsed by HUB6 Inc.

Notifications You must be signed in to change notification settings

Craig-ctrl/OpenHUB6

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenHUB6

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.

  1. Connect to OpenHub from your laptop (192.168.255.1)
  2. 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
  3. Install openssh-sftp-server (easier to upload files)
  4. Upload the two new config files here to OpenHub /etc/config/:
    • alarm-event
    • alarm-notify
  5. Upload the two new User Interface file here to OpenHub /usr/lib/lua/luci/model/cbi/security-module/:
    • alarm-notify.lua
    • alarm-event.lua
  6. Upload the updated Menu file here to OpenHub /usr/lib/lua/luci/controller/security/:
    • security.lua
  7. Upload the new Event Notifier scripts here to OpenHub /root/:
    • notify-home.sh
    • notify-push.sh
    • notify-telegram.sh
  8. You will need to change the "file permissions" on the Event Notifier scripts.
    • Include the ability to "Execute" the script
  9. Upload the updated DSC IT-100 Listener script here to OpenHub /usr/bin/:
    • dsc-it100
  10. Reload the dsc-it100 script:
    • Open the Luci User Interface (192.168.255.1)
    • System➡️Startup➡️dsc-it100➡️RESTART

OpenHub6 Interface Updates

🏠 Home Assistant Setup

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

📨 Telegram Setup

  1. Create a bot
    1. Enter @Botfather in the search tab and choose this bot.
    2. Enter “/newbot” and enter the name for your bot
    3. Copy the HTTP API token (Add to OpenHub)
  2. Click the link to your new bot.
  3. Press or type "/start"
  4. Log in to Openub Luci interface (192.168.255.1)
    • Go to the Notifications Tab and add your Telegram API token & Chat ID

About

OpenHUB6 is open, developer-friendly firmware for Safe This project is not affiliated with or endorsed by HUB6 Inc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 51.5%
  • Shell 45.2%
  • Makefile 3.3%