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-bali-blinds

v0.0.5-beta.8

Published

Homebridge integration with Bali Blinds Web Service

Downloads

15

Readme

Homebridge Plugin for Bali Blinds

This is a Homebridge plugin for Bali Blinds. The Bali Motorization mobile application used to control the blinds only supports Amazon Alex and Google Assistant (as of 2023) hence this plugin's existence.

(Thanks @hjdhjd, I copied some of your Install and Configuration section :smile:)

Installation

If you have installed the Homebridge Config UI, you can intall this plugin by going to the Plugins tab and searching for homebridge-bali-blinds and installing it.

Or, if you prefer to install homebridge-bali-blinds from the command line, you can do so by executing:

sudo npm install -g homebridge-bali-blinds

Configuration

I strongly recommend using the Homebridge Config UI rather than editing your config.json directly. It does a good job of showing you all the options and always generating a valid configuration so you don't get stuck on typos or looking for stray commas in your config.json.

For those that prefer configuring things directly, add the accessory in config.json in your home directory inside .homebridge.

    "platforms": [
        {
            "platform": "BaliBlinds",
            "baliUsername": "your-username",
            "baliPassword": "your-password",
            "lowBattery": 33 // Optional
        }
    ]

Options

  • baliUsername: (Required) Username from Bali Motorization mobile app. It is recommended creating a new user in mobile app with "Basic User" permission levels since no Admin or Advanced permissions are required by this plugin.
  • baliPassword: (Required) Password for the user above.
  • lowBattery: (Optional) Default 33%. The percentage threshold at which the low battery status will be set on Homebridge blinds accessories.

Fun Facts and Random Bits

I'm not an expert with IoT products, MiOS, Ezlo, Vera, or really any of the technologies used in this plugin. If you see something that doesn't make sense or could be improved please let me know by opening a GitHub issue to discuss.

Plugin Design

The design of this plugin is that it communicates with an HTTP API hosted by MiOS and Ezlo. This HTTP API is connected (polled I think) to the Bali Gateway device (Ezlo Atom) that communicates ZWave with the blinds. At first, I considered this solution pretty round-about when I could just speak ZWave directly to the blinds from Homebridge but I believe there is some benefit to not requiring more hardware. If you already have a ZWave device connected to Homebridge there are probably other plugins you can use to benefit from the direct communication.

flowchart LR;
	A[Homebridge Plugin] --> B[MiOS/Ezlo HTTP API];
	B <--> C[Bali Gateway*];
	C --> D[ZWave];
	D --> E[Blinds];
	F[Mobile App] --> B;
	G[Physical Remote**] --> C;
* Bali Gateway is an Ezlo Atom hub usb device
** The physical remote is Somfy brand device

Documentation and References

During development of this plugin I used various references including but not limited to:

  • Legacy MiOS documentation since it appears Bali Motorization is built on legacy cloud infra: https://developer.mios.com/api/legacy-cloud-api/documents/
  • This gist from @cgmartin https://gist.github.com/cgmartin/466bd2d3724de6c04743d61cf0de2066 which I adapted to Bali https://gist.github.com/bostrt/f8189ce83e6fa6fb573aea2f1e76b723
  • The Bali Motorization Android APK for PK_Oem and AppKey parameters.
  • Ezlo Hub Kit source code which this plugin is very roughly based on: https://github.com/bblacey/ezlo-hub-kit/

Development

See DEVELOPMENT.md

Plugin Development Dashboard

GitHub GitHub Workflow Status npm Libraries.io dependency status for latest release