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

homebridge-elero-stick

v1.6.7

Published

Elero funkstick for homebridge: https://github.com/ma-ku/homebridge-elero-stick

Downloads

74

Readme

homebridge-elero-stick

homebridge-elero-stick is a plugin for Homebridge that allows controlling Elero (http://www.elero.de) motors for roller shutters and blinds (SunTop, RolTop, VariEco products) wirelessly with the Elero Transmitter Stick (https://www.elero.com/en/products/control-systems/centero/).

Installation

If you are new to Homebridge, please first read the Homebridge documentation.

Install homebridge:

sudo npm install -g homebridge

Install homebridge-elero-stick:

sudo npm install -g homebridge-elero-stick

Configuration

Add the platform in config.json in your home directory inside .homebridge. Alternatively you can use the Config UI to change the values

    "platforms": [
      {
        "platform": "EleroStick",
        "name": "EleroStick",
        "port": "/dev/tty.usbserial-A603IUAZ",
        "updateInterval": 3500,
        "movingUpdateInterval": 1500,

        "motors": [
          {
            "channel": 1,
            "type": "shutter",
            "name": "Window Kitchen",
            "duration": 24000
          }
        ]
      }
    ]

The port property is required to point to the USB Stick that is mounted as a serial line. Each learned channel (up to 15 channels are supported per stick) will be registered in homebridge. If you want to add additional parameters to a given instance, the channels property allows to supply additional properties for each channel, indexed by the channel identifier (0-15).

Since the motors are ectively monitored by the plugin, the intervals can be configured. If no motor is detected as moving, then the updateInterval will be applied. This is useful for the plugin to detect movements that were triggered by other remotes. Once at least one motor is detected as moving, the frequency will be change to movingUpdateInterval to allow finer control of the movements. An additional parameter for fine-grained control is sendInterval that controls the frequency with that commands are sent to the transmitter stick, its default value is 250ms. All values are milliseconds and must be greater than zero. Please be careful with these settings.

The following parameters are currently available for a channel:

  • name: The name of the channel when displayed in Homekit
  • type: Type of controlled device. Allowed values are: shutter, shades, heating, and lights.
  • duration: The duration in milliseconds it takes the shutter to go from the fully closed to the fully open position. This is used to calculate the intermediate positions based on the elapsed time during movements.
  • startDelay: This is an optional value that allows the plugin to compensate for motors that start with delay or slow acceleration.
  • disabled: Allows diabling the accessory for a motor. The accessory will not get created and will not appear in HomeKit.
  • reverse: The motor is moving in reverse direction so that open and closed state will be reported inverted.

Notes

  1. This plugin has been tested with a RolTop motor and due to the lack of motorized blinds, some of the features offered by the Elero Transmitter Stick could not be exercised.
  2. The driver tries to monitor also manually triggered movements (e.g. by moving the shutter using linked controllers instead of using HomeKit). This might not yet be 100% perfect.

Troubleshooting

  • Check if the motors are in bi-directional mode.
  • Try to control each motor directly from the Elero-Stick.
  • Create a detailed log to help tracing bugs.

Logging

NOTE: Logs may contain sensitive data such as passwords or authentication tokens. Please review the logs before sharing them with others.

This plugin already provides logs for the general behavior of the plugin. By enabling the -D option running HomeBridge, you will get also detailed information about internal decision making and timings that help to improved the settings for your Elero stick. If that is not sufficient, you can also enable logging of the serial communication between the plugin and the Elero stick. Add "debugSerial": true to the platform configuration and restart. Since debug logging produces a significant amount of data, you should only turn it on for a limited time.

Feel free to contribute to make this a better plugin!