npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

risco-mqtt-home-assistant

v1.1.0

Published

Node Risco Mqtt for Home Assistant

Downloads

32

Readme

risco-mqtt-home-assistant

This project is highly inspired by risco-mqtt-bridge by Luca Calcaterra but differs from it because it uses Risco REST API sniffed from iRISCO app.

Motivations

Sometimes Risco Cloud Web API (that is the basis on which risco-mqtt-bridge was developed) does not respond to sensors change state unless you force the state update of the alarm control panel. So I have decided to change the source of information of risco alarm panel from Web APIs to REST APIs like in the mobile App.

risco-mqtt-home-assistant supports also multipartitions.

Requirements

  • Node.js (currently tested with >=ver. 10.x)
  • Mqtt Server - e.g. Mosquitto, HiveMQ, etc.
  • Home Assistant

Features

  • Interaction with RISCO alarm control panel like in iRISCO mobile app.
  • Interaction with MQTT Alarm Control Panel integration in Home Assistant.
  • Interaction with MQTT Binary Sensor integration in Home Assistant.
  • Home Assistant MQTT Auto Discovery.
  • RISCO multipartitions.

Installation

npm install risco-mqtt-home-assistant

Configuration

Create a file config.json in your project directory.

{
    "username": "YOUR_RISCO_EMAIL",
    "password": "YOUR_RISCO_PASSWORD",
    "pin": "YOUR_CENTRAL_PIN_CODE",
    "language-id": "YOUR_LANGUAGE_ID", // example: en, it, de etc ...
    "mqtt-url": "mqtt://MQTT_HOST:MQTT_PORT",
    "mqtt-username": "MQTT_USERNAME",
    "mqtt-password": "MQTT_PASSWORD",
    "interval-polling": "RISCO_INTERVAL_POLLING", // default is 5000
    "home-assistant-discovery-prefix" : "YOUR_HOME-ASSISTANT-DISCOVERY-PREFIX" // default is homeassistant
}

Subscribe Topics

risco-mqtt-home-assistant subscribes at startup one topic for every partition in your risco alarm panel configuration.

Topics format is riscopanel/alarm/<partition_id>/set where partition_id is the id of the partition

Payload could be : disarmed if risco panel is in disarmed mode,armed_home if risco panel is in armed at home mode and armed_away if risco panel is in armed away mode.

Publish Topics

risco-mqtt-home-assistant publishes one topic for every partition and for every zones in your risco alarm panel configuration.

Partitions topics format is riscopanel/alarm/<partition_id>/status where partition_id is the id of the partition

Payload could be : disarmed if risco panel is in disarmed mode,armed_home if risco panel is in armed at home mode and armed_away if risco panel is in armed away mode.

Zones topics format is riscopanel/alarm/<partition_id>/sensor/<zone_id>/status where partition_id is the id of the partition and zone_id is the id of the zone.

Payload could be : triggered if zone is curently triggered, and idle if zone is currently idle.

In addition to every zones, risco-mqtt-home-assistant publishes a topic for every zone with all the info of the zone in the paylaod in json format. Topics format is riscopanel/alarm/<partition_id>/sensor/<zone_id> where partition_id is the id of the partition and zone_id is the id of the zone.

Home Assistant Auto Discovery

risco-mqtt-home-assistant supports mqtt auto discovery feature.

Default <discovery_prefix> is homeassistant. You can change it by overwriting the value within home-assistant-discovery-prefix config.

Usage

To start risco-mqtt-home-assistant you can simply type:

npx risco-mqtt-home-assistant