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-maxcube2

v0.3.5

Published

A node-red node to control the eQ-3 Max! Cube with maxcube2.js

Downloads

19

Readme

node-red-contrib-maxcube2

A collection of node-red nodes to control the eQ-3 Max! Cube

Introduction

History

node-red-contrib-maxcube2 is a fork of https://github.com/ivesdebruycker/node-red-contrib-maxcube using https://github.com/normen/maxcube2.

Changes from node-red-contrib-maxcube

  • Settings to temporary disable maxcube connection (the cube can handle only one TCP connection at a time, since maxcube/maxcube2 use a permanent connection if you want to temporary use another client you have to stop node-red...now you can disable in node settings)
  • Node to query devices configurations
  • Set mode to all devices with a single payload ({"mode" : "AUTO"} without rf_address)
  • Output devices data as single message or separeted messages
  • Send a reset command to devices not reacting to other commands
  • I'm planning add some additional features like schedule settings

The old API didn't change currently so it's a drop-in replacement.

Installation

cd $HOME/.node-red
npm install node-red-contrib-maxcube2

Restart Node-RED.

Nodes

maxcube config node

Set ip and port of your Max! Cube

maxcube (input)

A node to query the eQ-3 Max! Cube for device states.

Whenever an input message is received, device states are updated from the Max! Cube, and sent as separate messages (one for each device) with following structure:

{
    "rf_address": "1709d7",
    "initialized": true,
    "fromCmd": false,
    "error": false,
    "valid": true,
    "mode": "AUTO",
    "dst_active": true,
    "gateway_known": true,
    "panel_locked": false,
    "link_error": false,
    "battery_low": false,
    "valve": 0,
    "setpoint": 17,
    "temp": 0,
    "device_type": 1,
    "device_name": "Termosifone Sala TV",
    "room_name": "Piano terra",
    "room_id": 1
}

or as a single message with the following structure:

{
    "1709d7": {
        "rf_address": "1709d7",
        "initialized": true,
        "fromCmd": false,
        "error": false,
        "valid": true,
        "mode": "AUTO",
        "dst_active": true,
        "gateway_known": true,
        "panel_locked": false,
        "link_error": false,
        "battery_low": false,
        "valve": 0,
        "setpoint": 17,
        "temp": 0,
        "device_type": 1,
        "device_name": "Termosifone Sala TV",
        "room_name": "Piano terra",
        "room_id": 1
    },
    "18eb18": {
        "rf_address": "18eb18",
        "initialized": true,
        "fromCmd": false,
        "error": false,
        "valid": true,
        "mode": "AUTO",
        "dst_active": true,
        "gateway_known": true,
        "panel_locked": false,
        "link_error": false,
        "battery_low": false,
        "valve": 4,
        "setpoint": 17
        "temp": 27.2,
        "device_type": 3,
        "device_name": "Termostato a parete",
        "room_name": "Piano terra",
        "room_id": 1
    }
    "0a1d0e": {
        "rf_address": "0a1d0e",
        "open": false,
        "device_type": 5,
        "device_name": "Pulsante Eco"
    }
}

maxcube configuration (input)

A node to query the eQ-3 Max! Cube for device states.

Whenever an input message is received, device configuration are updated from the Max! Cube, and sent as separate messages (one for each device) with following structure:

{
   "rf_address":"18b444",
   "device_type":1,
   "serial_number":"OEQ1131666",
   "comfort_temp":21.5,
   "eco_temp":16.5,
   "max_setpoint_temp":30,
   "min_setpoint_temp":4.5,
   "temp_offset":0,
   "max_valve":100
}

or as a single message with the following structure:

{
   "18b444":{
      "rf_address":"18b444",
      "device_type":1,
      "serial_number":"OEQ1131666",
      "comfort_temp":21.5,
      "eco_temp":16.5,
      "max_setpoint_temp":30,
      "min_setpoint_temp":4.5,
      "temp_offset":0,
      "max_valve":100
   },
   "1709a1":{
      "rf_address":"1709a1",
      "device_type":1,
      "serial_number":"NKF0004984",
      "comfort_temp":21.5,
      "eco_temp":16.5,
      "max_setpoint_temp":30,
      "min_setpoint_temp":4.5,
      "temp_offset":0,
      "max_valve":100
   }
}

maxcube (output)of a device

A node to set the temperature and/or the mode of a device and/or reset a device. Valid modes are "AUTO", "MANUAL", "BOOST" and "VACATION".

Accepts messages with payload of type object with following structure:

MANUAL on specific device

{
  "rf_address": "0abc12",
  "degrees": 20,
  "mode":"MANUAL"
}

MANUAL on all devices

{
  "degrees": 20,
  "mode":"MANUAL"
}

AUTO on all devices

{
  "mode":"AUTO"
}

VACATION on all devices until specific date (ISO 8601)

{
  "mode":"VACATION",
  "untilDate" : "2019-06-20T10:00:00Z"
}

Reset a device

{
  "rf_address": "0abc12",
  "reset": true
}

Reset all devices

{
  "reset": true
}

The reset field can also be added to any of the above commands to issue a reset command before sending the temperature update.