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

v1.1.0

Published

homebridge-plugin for Braava Jet

Downloads

3

Readme

homebridge-braava

homebridge-plugin for Braava Jet (tested only with Braava Jet m6).

npm version dependencies Status

Features:

  • start on demand
  • stop and dock on demand
  • charging status
  • battery level (with low battery warning)
  • tank level indication (uses FilterMaintenance Service for now until a Tank Service is available)
  • pad type and status indication
  • ordered/unordered clean of specific rooms

Fork:

This plugin was initially forked from:
https://github.com/stvmallen/homebridge-roomba-stv

Thanks to @esteban-mallen

Modifications have been made to support iRobot Braava Jet m6. Additional support for Braava is planned for the future.

Credits to:

https://github.com/koalazak/dorita980

https://github.com/umesan/homebridge-roomba

https://github.com/steedferns/homebridge-roomba980

https://github.com/gbro115/homebridge-roomba690

@matanelgabsi for keepAlive feature

Installation:

1. Install homebridge and Braava plugin.

  • 1.a sudo npm install -g homebridge --unsafe-perm
  • 1.b sudo npm install -g homebridge-braava

2. Find robotpwd and blid.

  • 2.a Run npm run getrobotpwd 192.168.xx.xx where this plugin in installed
  • 2.b Follow instructions

Note that this command may fail if the iOS iRobot app is open or there are open connections to the Braava (including homebridge). It is recommended to stop any connections before attempting to run this command.

If successful, the following message will be displayed.

Please check blid and Password of displayed message.

Robot Data:
{ ver: '2',
  hostname: 'Braava-xxxxxxxxxxxxxxxx',
  robotname: 'Your Braava’s Name',
  ip: '192.168.xx.xx',
  mac: 'xx:xx:xx:xx:xx:xx',
  sw: 'vx.x.x-x',
  sku: 'R98----',
  nc: 0,
  proto: 'mqtt',
  blid: '0123456789abcdef' }
Password=> :1:2345678910:ABCDEFGHIJKLMNOP <= Yes, all this string.

4. Update homebridge configuration file.

"accessories": [
  {
    "accessory": "Braava",
    "name": "Your chosen name",
    "model": "m6",
    "blid": "1234567890",
    "robotpwd": "aPassword",
    "ipaddress": "192.168.xx.xx",
    "autoRefreshEnabled": true,
    "keepAliveEnabled": true, // If you use local network mode in iRobot app, consider disabling. see note below
    "cacheTTL": 30 //in seconds
  }
]

Refresh mode

This plugins supports these refresh modes:

  • NONE (autoRefreshEnabled and keepAlive both set to false) - no auto refresh, we will connect to braava and poll status when requested by home app. Please note that this will cause "Updating" status for all homebridge accessories.

  • AUTO REFRESH (autoRefreshEnabled set to true) - we will connect to braava, every pollingInterval seconds, and store the status in cache. if pollingInterval = cacheTTL - 10 (or more), this will make sure we will always have a valid status.

  • KEEP ALIVE (keepAlive set to true) - we will keep a connection to braava, this will cause app to fail to connect to braava in local network mode (cloud mode will work just fine, even in your home wifi). This will lead to better performance (status will refresh faster, and toggle will work faster as well). Keep in mind this will increase the Braava battery consumption.

Advanced configuration

Ordered room cleaning

For robots with the ability to set ordered cleaning of rooms, an object can be supplied in the configuration specifying which rooms to clean and in what order. Note that a smart map is required to use this feature. If you have the ability to set a room-specific cleaning in your iRobot app, you should be able to set the plugin configuration to do the same.

To get the regions defined in your smart map, inspect the robot state for the lastCommand value. There are a few different ways to do this. Probably the simplest—while using this plugin, you can set homebridge to debug mode, which will output state.lastCommand on a state update:

Homebridge Settings > Startup Options > Homebridge Debug Mode

Alternatively, you can use koalazak/rest980 to inspect the state.

Use ordered, regions, pmap_id and user_pmapv_id in your orderedClean config:

"accessories": [
    {
        "name": "Your chosen name",
        "model": "m6",
        "blid": "1234567890",
        "robotpwd": "aPassword",
        "ipaddress": "192.168.xx.xx",
        "autoRefreshEnabled": true,
        "keepAliveEnabled": true,
        "accessory": "Braava",
        "orderedClean": {
            "ordered": 1, // 0 to run unordered
            "regions": [
                {
                    "region_id": "3"
                },
                {
                    "region_id": "1"
                },
                {
                    "region_id": "2"
                }
            ],
            "pmap_id": "xxxxxxxxxxxxxxxxxxxx",
            "user_pmapv_id": "XXXXXXXXXXXX"
        }
    }
]