Skip to content

Commit

Permalink
fix: Add alias for deerma.jsq3, update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nt0xa committed Jan 12, 2022
1 parent 343c5f8 commit cfd76e0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ Add the following part to the "platforms" section of your [Homebridge config](ht
| 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](https://github.com/Maxmudjon/com.xiaomi-miio/blob/master/docs/obtain_token.md). ||
| model | One of:<br />- `zhimi.humidifier.v1`<br /> `zhimi.humidifier.ca1`<br /> `zhimi.humidifier.cb1`<br /> `zhimi.humidifier.ca4`<br /> `deerma.humidifier.mjjsq`<br /> `deerma.humidifier.jsq1`<br /> `deerma.humidifier.jsq4`<br /> `deerma.humidifier.jsq5`<br /> `deerma.humidifier.jsqs`<br /> `shuii.humidifier.jsq001`<br />See [supported devices](#supported-devices) section for more details. ||
| model | One of:<br />- `zhimi.humidifier.v1`<br />- `zhimi.humidifier.ca1`<br />- `zhimi.humidifier.cb1`<br />- `zhimi.humidifier.ca4`<br />- `deerma.humidifier.mjjsq`<br />- `deerma.humidifier.jsq1`<br />- `deerma.humidifier.jsq3`<br />- `deerma.humidifier.jsq4`<br />- `deerma.humidifier.jsq5`<br />- `deerma.humidifier.jsqs`<br />- `shuii.humidifier.jsq001`<br />See [supported devices](#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: <br /> - `zhimi.humidifier.{ca1,cb1,ca4}`<br /> - `deerma.humidifier.{mjjsq,jsq1,jsq001,jsq4}` | false |
| autoSwitchToHumidityMode | Automatically switches mode to "humidity" when target humidity is changed. Affects models: <br /> - `zhimi.humidifier.{ca1,cb1,ca4}`<br /> - `deerma.humidifier.{mjjsq,jsq1,jsq001,jsqs,jsq3,jsq4,jsq5}` | 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" |
Expand Down
1 change: 1 addition & 0 deletions config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"zhimi.humidifier.ca4",
"deerma.humidifier.mjjsq",
"deerma.humidifier.jsq1",
"deerma.humidifier.jsq3",
"deerma.humidifier.jsq4",
"deerma.humidifier.jsq5",
"deerma.humidifier.jsqs",
Expand Down
4 changes: 3 additions & 1 deletion src/devices/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export enum HumidifierModel {
DEERMA_MJJSQ = "deerma.humidifier.mjjsq",
DEERMA_JSQ = "deerma.humidifier.jsq1",
DEERMA_JSQ4 = "deerma.humidifier.jsq4",
DEERMA_JSQ3 = "deerma.humidifier.jsq3",
DEERMA_JSQ5 = "deerma.humidifier.jsq5",
DEERMA_JSQS = "deerma.humidifier.jsqs",
SHUII_JSQ001 = "shuii.humidifier.jsq001",
Expand All @@ -45,7 +46,8 @@ export const HumidifierFactory = {
[HumidifierModel.DEERMA_MJJSQ]: deermaMJJSQ,
[HumidifierModel.DEERMA_JSQ]: deermaMJJSQ,
[HumidifierModel.DEERMA_JSQ4]: deermaJSQ4,
[HumidifierModel.SHUII_JSQ001]: shuiiJSQ001,
[HumidifierModel.DEERMA_JSQ3]: deermaJSQ5,
[HumidifierModel.DEERMA_JSQ5]: deermaJSQ5,
[HumidifierModel.DEERMA_JSQS]: deermaJSQ5,
[HumidifierModel.SHUII_JSQ001]: shuiiJSQ001,
};

0 comments on commit cfd76e0

Please sign in to comment.