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

node-red-contrib-hdlbus

v1.1.6

Published

Node-Red implementation of HDL BusPro (SmartBus) protocol http://hdlautomation.com

Downloads

25

Readme

node-red-contrib-hdlbus

Node-Red implementation of HDL BusPro (SmartBus) protocol http://hdlautomation.com - forked from node-red-contrib-buspro, based on smart-bus.

The motivation for creating this node set was to fill a perceived gap in functionality. This package provides:

  • state storage of devices - all level updates are stored in a JS object
  • input/output nodes for device channels
  • input/output nodes for universal switches
  • a get node for device channels (based on stored values)
  • a button color node to change the LED color of the new capacitive touch buttons
  • a panel brightness node to facilitate dimming panels eg. at night
  • input/output nodes enabling the creation of a virtual HVAC device
  • raw nodes to allow you to craft messages to send/receive anything on the HDL network

This is by no means perfect - happy to hear any suggestions.

If you're looking for a event timer - check out eztimer.

BusPro-Controller

The node that holds connection to IP Gateway of BusPro (Smart-Bus) network (or broadcast address if using broadcast).

Config

defaults: {
            host: {value:"",required:true},   // HDL SmartBus gateway IP 
            port: {value:6000,required:true,validate:RED.validators.number()},    // and port, default: 6000 
            subnetid: {value: 1, required: true, validate: RED.validators.number()}, // Connector address in HDL network (Subnet ID)
            deviceid: {value: 99, required: true, validate: RED.validators.number()} // Connector address in HDL network (Device ID)
        }

hdl-channel-in

Trigger flows based on pre-determined channel/level messages.

Output Payload

{ "level": 0 }

hdl-channel-out

Send channel level request.

Input Payload (Optional - used to override/specify any values)

{
    "address": "1.50",
    "channel": 1,
    "level" 100
}

hdl-channel-get

Returns the current level of a given channel. This is obtained from the level store maintained by watching events (rather than requiring a request/response to get the current level).

Input Payload (Optional - used to override/specify any values)

{
    "address": "1.50",
    "channel": 1,
}

Output Payload

{
    "address": "1.50",
    "channel": 1,
    "level" 100
}

hdl-uv-in

Trigger a flow based on a pre-determined uv switch change.

Output Payload

{ "state": false }

hdl-uv-out

Send UV switch request

Input Payload (Optional - used to override/specify any values)

{
    "address": "1.50",
    "switch": 1,
    "state" true
}

hdl-btn-color

Send request to update button color. This commands supports updating both the on and off colors independantly. This does not survive a device reboot.

Input Payload (Optional - used to override/specify any values)

  1. White
  2. Red
  3. Green
  4. Blue
  5. Orange
{
    "colorOff": 1
    "colorOn": 4
}

hdl-panel-brightness

Send request to update panel brightness (1-255). Note that low brightness values can impact the colors that can be produced.

Input Payload (Optional - used to override/specify any values)

{
    "address": "1.50",
    "brightness": 1,
}

hdl-virtual-hvac-in

Listens for HVAC request messages targetted at the specified address (eg. if you're emulating a HVAC device at 1.51, use 1.51 in the address field) and outputs the data as a JSON payload

Output Payload

{
    "acstatus": 1, //Status: 1 on, 0 off
    "acno": 1, //AC No, set in DLP
    "setupmode": 1, //Mode: 0 Cooling, 1 Heating, 2 Fan, 3 Auto, 4 Dry
    "setupspeed": 0, //Fan Speed: 0 Auto, 1 High, 2 Medium, 3 Low.
    "temperature": {
        "type": 0, //Type: 0 celsius, 1 farenheit
        "now": 21, //DLP Temprature
        "cooling": 21, //Cooling Temprature
        "heating": 21, //Heating Temprature
        "auto": 21, //Auto Temprature
        "dry": 21 //Dry Temprature
    },
    "modeandfan": 48, //Mode and Fan always 48
    "currentmode": 21, //Current Mode Temprature
    "sweep": 0 //Sweep
}

hdl-virtual-hvac-out

Accepts a JSON payload (must be complete) and transmits to the broadcast (255.255) address with a source of the specified address (eg. if you're emulating a HVAC device at 1.51, use 1.51 in the address field).

Input Payload

{
    "acstatus": 1, //Status: 1 on, 0 off
    "acno": 1, //AC No, set in DLP
    "setupmode": 1, //Mode: 0 Cooling, 1 Heating, 2 Fan, 3 Auto, 4 Dry
    "setupspeed": 0, //Fan Speed: 0 Auto, 1 High, 2 Medium, 3 Low.
    "temperature": {
        "type": 0, //Type: 0 celsius, 1 farenheit
        "now": 21, //DLP Temprature
        "cooling": 21, //Cooling Temprature
        "heating": 21, //Heating Temprature
        "auto": 21, //Auto Temprature
        "dry": 21 //Dry Temprature
    },
    "modeandfan": 48, //Mode and Fan always 48
    "currentmode": 21, //Current Mode Temprature
    "sweep": 0 //Sweep
} 

hdl-raw-in

Receive (any) commands from HDL (Smart-Bus) network

Output Message

msg:{
    "sender": "1.2" //ID of Sender Device
    "target": "255.255" //ID of Target Device
    "code": 50    //Integer with command operation code
    "payload": {}   //Object with decoded data or raw buffer if data can not be parsed automatically
}

hdl-raw-out

Send (any) commands to the HDL (Smart-Bus) network

Input Message

msg:{
    "target": "1.52" //ID of Target Device
    "code": 49    //Integer with command operation code
    "payload": { //Object with data or raw buffer 
            "channel": 2,
            "level": 100
  	}   
}

Change Log

1.1.4

  • Added input/output nodes for creating virtual HVAC device.