forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[miio] add support Mi Smart Humidifier deerma.humidifier.jsq5 (openha…
…b#11577) https://community.openhab.org/t/mi-smart-antibacterial-humidifier-not-recognized/127562 Signed-off-by: Marcel Verpaalen <[email protected]> Signed-off-by: Michael Schmidt <[email protected]>
- Loading branch information
1 parent
f8bd307
commit 70f72de
Showing
3 changed files
with
249 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
214 changes: 214 additions & 0 deletions
214
bundles/org.openhab.binding.miio/src/main/resources/database/deerma.humidifier.jsq5.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,214 @@ | ||
{ | ||
"deviceMapping": { | ||
"id": [ | ||
"deerma.humidifier.jsq5" | ||
], | ||
"propertyMethod": "get_properties", | ||
"maxProperties": 1, | ||
"channels": [ | ||
{ | ||
"property": "on", | ||
"siid": 2, | ||
"piid": 1, | ||
"friendlyName": "Humidifier - Switch Status", | ||
"channel": "on", | ||
"type": "Switch", | ||
"refresh": true, | ||
"actions": [ | ||
{ | ||
"command": "set_properties", | ||
"parameterType": "ONOFFBOOL" | ||
} | ||
], | ||
"category": "switch", | ||
"tags": [ | ||
"Switch" | ||
] | ||
}, | ||
{ | ||
"property": "fault", | ||
"siid": 2, | ||
"piid": 2, | ||
"friendlyName": "Humidifier - Device Fault", | ||
"channel": "fault", | ||
"type": "Number", | ||
"stateDescription": { | ||
"readOnly": true, | ||
"options": [ | ||
{ | ||
"value": "0", | ||
"label": "No Faults" | ||
}, | ||
{ | ||
"value": "1", | ||
"label": "Insufficient Water" | ||
}, | ||
{ | ||
"value": "2", | ||
"label": "Water Separation" | ||
} | ||
] | ||
}, | ||
"refresh": true, | ||
"actions": [], | ||
"readmeComment": "Value mapping `[\"0\"\u003d\"No Faults\",\"1\"\u003d\"Insufficient Water\",\"2\"\u003d\"Water Separation\"]`" | ||
}, | ||
{ | ||
"property": "fan-level", | ||
"siid": 2, | ||
"piid": 5, | ||
"friendlyName": "Humidifier - Fan Level", | ||
"channel": "fan_level", | ||
"type": "Number", | ||
"stateDescription": { | ||
"options": [ | ||
{ | ||
"value": "1", | ||
"label": "Level1" | ||
}, | ||
{ | ||
"value": "2", | ||
"label": "Level2" | ||
}, | ||
{ | ||
"value": "3", | ||
"label": "Level3" | ||
}, | ||
{ | ||
"value": "4", | ||
"label": "Humidity" | ||
} | ||
] | ||
}, | ||
"refresh": true, | ||
"actions": [ | ||
{ | ||
"command": "set_properties", | ||
"parameterType": "NUMBER" | ||
} | ||
], | ||
"readmeComment": "Value mapping `[\"1\"\u003d\"Level1\",\"2\"\u003d\"Level2\",\"3\"\u003d\"Level3\",\"4\"\u003d\"Humidity\"]`" | ||
}, | ||
{ | ||
"property": "target-humidity", | ||
"siid": 2, | ||
"piid": 6, | ||
"friendlyName": "Humidifier - Target Humidity", | ||
"channel": "target_humidity", | ||
"type": "Number:Dimensionless", | ||
"unit": "percentage", | ||
"stateDescription": { | ||
"minimum": 40, | ||
"maximum": 80, | ||
"step": 1, | ||
"pattern": "%.0f %%" | ||
}, | ||
"refresh": true, | ||
"actions": [ | ||
{ | ||
"command": "set_properties", | ||
"parameterType": "NUMBER" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "relative-humidity", | ||
"siid": 3, | ||
"piid": 1, | ||
"friendlyName": "Environment - Relative Humidity", | ||
"channel": "relative_humidity", | ||
"type": "Number:Dimensionless", | ||
"unit": "percentage", | ||
"stateDescription": { | ||
"minimum": 0, | ||
"maximum": 100, | ||
"step": 1, | ||
"pattern": "%.0f %%", | ||
"readOnly": true | ||
}, | ||
"refresh": true, | ||
"actions": [], | ||
"category": "humidity", | ||
"tags": [ | ||
"Measurement", | ||
"Humidity" | ||
] | ||
}, | ||
{ | ||
"property": "temperature", | ||
"siid": 3, | ||
"piid": 7, | ||
"friendlyName": "Environment - Temperature", | ||
"channel": "temperature", | ||
"type": "Number:Temperature", | ||
"unit": "celsius", | ||
"stateDescription": { | ||
"minimum": -30, | ||
"maximum": 100, | ||
"step": 1, | ||
"pattern": "%.0f %unit%", | ||
"readOnly": true | ||
}, | ||
"refresh": true, | ||
"actions": [] | ||
}, | ||
{ | ||
"property": "alarm", | ||
"siid": 5, | ||
"piid": 1, | ||
"friendlyName": "Alarm - Alarm", | ||
"channel": "alarm", | ||
"type": "Switch", | ||
"refresh": true, | ||
"actions": [ | ||
{ | ||
"command": "set_properties", | ||
"parameterType": "ONOFFBOOL" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "on1", | ||
"siid": 6, | ||
"piid": 1, | ||
"friendlyName": "Indicator Light - Switch Status", | ||
"channel": "on1", | ||
"type": "Switch", | ||
"refresh": true, | ||
"actions": [ | ||
{ | ||
"command": "set_properties", | ||
"parameterType": "ONOFFBOOL" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "water-shortage-fault", | ||
"siid": 7, | ||
"piid": 1, | ||
"friendlyName": "Custom - Water Shortage Fault", | ||
"channel": "water_shortage_fault", | ||
"type": "Switch", | ||
"stateDescription": { | ||
"readOnly": true | ||
}, | ||
"refresh": true, | ||
"actions": [] | ||
}, | ||
{ | ||
"property": "the-tank-filed", | ||
"siid": 7, | ||
"piid": 2, | ||
"friendlyName": "Custom - The Tank Filed", | ||
"channel": "the_tank_filed", | ||
"type": "Switch", | ||
"stateDescription": { | ||
"readOnly": true | ||
}, | ||
"refresh": true, | ||
"actions": [] | ||
} | ||
], | ||
"experimental": false | ||
} | ||
} |