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

@petro-kushchak/homebridge-mi-humidifier-globals

v0.0.2

Published

Xiaomi Mi Humidifier plugin for Homebridge with Data Sharing over globals

Downloads

8

Readme

A Xiaomi Mi humidifier plugin for Homebridge.

This plugins is based on https://github.com/russtone/homebridge-mi-humidifier plugin allows to SHARE data to another Homebridge plugins using "globals" dictionary

Configuration

Add the following part to the "platforms" section of your Homebridge config:

{
  "platform": "MiHumidifierGlobals",
  "devices": [
    {
      "name": "Humidifier",
      "address": "<ip>",
      "token": "<token>",
      "model": "zhimi.humidifier.v1",
      "updateInterval": 30,
      "disabled": false,
      "autoSwitchToHumidityMode": true,
      "disableTargetHumidity": false,
      "globalsDataPath": "miHumidifier",
      "ledBulb": {
        "enabled": true,
        "name": "Humidifier LED"
      },
      "buzzerSwitch": {
        "enabled": true,
        "name": "Humidifier Buzzer"
      },
      "temperatureSensor": {
        "enabled": true,
        "name": "Humidifier Temperature"
      },
      "humiditySensor": {
        "enabled": true,
        "name": "Humidifier Humidity"
      }
    }
  ]
}

Platform

| Key | Description | | -------- | ------------------------------------------- | | platform | Platform name. Has to be MiHumidifier | | devices | Array of devices configurations. |

Device

| Key | Description | Default value | | ------------------------- | ------------------------------------------------------------ | ------------------------ | | name | Name of the device. This will appear in your Home app. | "Humidifier" | | address | IP address of the device. | — | | token | Device token. See obtaining token. | — | | model | One of:- zhimi.humidifier.v1- zhimi.humidifier.ca1- zhimi.humidifier.cb1- zhimi.humidifier.ca4- deerma.humidifier.mjjsq- deerma.humidifier.jsq001- deerma.humidifier.jsq1- shuii.humidifier.jsq001See supported devices section for more details. | — | | updateInterval | Device values update interval in seconds. This value affects how often data (humidity, temperature, etc.) from the device is updated. | 30 | | disabled | Disable the devices. Can be used to temporary hide the device when it is not required without removing it from config. | false | | autoSwitchToHumidityMode | Automatically switches mode to "humidity" when target humidity is changed. Affects models: - zhimi.humidifier.{ca1,cb1,ca4} - deerma.humidifier.{mjjsq,jsq1,jsq001,jsq4} | false | | disableTargetHumidity | Disables ability to control target humidity. In this case long press on device in Home.app will allow to control fan speed instead of target humidity. | false | | ledBulb.enabled | Enables additional light bulb accessory which allows to control LED lights. | false | | ledBulb.name | Name of LED lightbulb. This will appear in your Home app. | "Humidifier LED" | | buzzerSwitch.enabled | Enables additional switch accessory which allows to control buzzer. | false | | buzzerSwitch.name | Name of buzzer switch. This will appear in your Home app. | "Humidifier Buzzer" | | temperatureSensor.enabled | Enables additional temperature sensor accessory. | false | | temperatureSensor.name | Name of temperature sensor. This will appear in your Home app. | "Humidifier Temperature" | | humiditySensor.enabled | Enables additional humidity sensor accessory. | false | | humiditySensor.name | Name of humidity sensor. This will appear in your Home app. | "Humidifier Humidity" | | cleanModeSwitch.enabled | Enables additional switch accessory which allows to control clean mode (only for zhimi.humidifier.ca4). | false | | cleanModeSwitch.name | Name of clean mode switch. This will appear in your Home app. | "Humidifier Clean Mode" |

Supported devices

Smartmi Humidifier

Model: zhimi.humidifier.v1

Model №: CJJSQ01ZM

Smartmi Evaporative Humidifier

Model: zhimi.humidifier.ca1 / zhimi.humidifier.cb1

Model №: CJXJSQ02ZM, SKV6001EU

Smartmi Evaporative Humidifier 2

Model: zhimi.humidifier.ca4

Model №: CJXJSQ04ZM

Zero Fog Humidifier

Model: shuii.humidifier.jsq001

Model №: DWZF(G)-2100Z

Mijia Smart Sterilization Humidifier (S)

Model: deerma.humidifier.mjjsq / deerma.humidifier.jsq001

Model №: SCK0A45, ZNJSQ01DEM, MJJSQ03DY

Mijia Pure Smart Humidifier

Model: deerma.humidifier.jsq4

Model №: CJSJSQ01DY