[miio] add support for zhimi airpurifier 3C (mb4) (#9885)
Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This commit is contained in:
@@ -325,6 +325,7 @@ public enum MiIoDevices {
|
||||
ZHIMI_AIRPURIFIER_MA4("zhimi.airpurifier.ma4", "Mi Air Purifier 3", THING_TYPE_BASIC),
|
||||
ZHIMI_AIRPURIFIER_MB1("zhimi.airpurifier.mb1", "Mi Air Purifier 2S", THING_TYPE_BASIC),
|
||||
ZHIMI_AIRPURIFIER_MB3("zhimi.airpurifier.mb3", "Mi Air Purifier 3/3H", THING_TYPE_BASIC),
|
||||
ZHIMI_AIRPURIFIER_MB4("zhimi.airpurifier.mb4", "Mi Air Purifier 3C", THING_TYPE_BASIC),
|
||||
ZHIMI_AIRPURIFIER_MC1("zhimi.airpurifier.mc1", "Mi Air Purifier 2S", THING_TYPE_BASIC),
|
||||
ZHIMI_AIRPURIFIER_MC2("zhimi.airpurifier.mc2", "Mi Air Purifier 2H", THING_TYPE_BASIC),
|
||||
ZHIMI_AIRPURIFIER_SA1("zhimi.airpurifier.sa1", "Mi Air Purifier Super", THING_TYPE_BASIC),
|
||||
|
||||
@@ -0,0 +1,257 @@
|
||||
{
|
||||
"deviceMapping": {
|
||||
"id": [
|
||||
"zhimi.airpurifier.mb4"
|
||||
],
|
||||
"propertyMethod": "get_properties",
|
||||
"maxProperties": 1,
|
||||
"channels": [
|
||||
{
|
||||
"property": "on",
|
||||
"siid": 2,
|
||||
"piid": 1,
|
||||
"friendlyName": "Power",
|
||||
"channel": "on",
|
||||
"type": "Switch",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_properties",
|
||||
"parameterType": "ONOFFBOOL"
|
||||
}
|
||||
],
|
||||
"category": "switch",
|
||||
"tags": [
|
||||
"Switch"
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "fault",
|
||||
"siid": 2,
|
||||
"piid": 2,
|
||||
"friendlyName": "Air Purifier - Device Fault",
|
||||
"channel": "fault",
|
||||
"type": "String",
|
||||
"stateDescription": {
|
||||
"readOnly": true
|
||||
},
|
||||
"refresh": true,
|
||||
"actions": []
|
||||
},
|
||||
{
|
||||
"property": "mode",
|
||||
"siid": 2,
|
||||
"piid": 4,
|
||||
"friendlyName": "Mode",
|
||||
"channel": "mode",
|
||||
"type": "Number",
|
||||
"stateDescription": {
|
||||
"options": [
|
||||
{
|
||||
"value": "0",
|
||||
"label": "Auto"
|
||||
},
|
||||
{
|
||||
"value": "1",
|
||||
"label": "Sleep"
|
||||
},
|
||||
{
|
||||
"value": "2",
|
||||
"label": "Favorite"
|
||||
}
|
||||
]
|
||||
},
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_properties",
|
||||
"parameterType": "NUMBER"
|
||||
}
|
||||
],
|
||||
"tags": [
|
||||
"Control"
|
||||
],
|
||||
"readmeComment": "Value mapping [\"0\"\u003d\"Auto\",\"1\"\u003d\"Sleep\",\"2\"\u003d\"Favorite\"]"
|
||||
},
|
||||
{
|
||||
"property": "pm2.5-density",
|
||||
"siid": 3,
|
||||
"piid": 4,
|
||||
"friendlyName": "Environment - Pm2 5 Density",
|
||||
"channel": "pm2_5_density",
|
||||
"type": "Number",
|
||||
"stateDescription": {
|
||||
"minimum": 0,
|
||||
"maximum": 600,
|
||||
"step": 1,
|
||||
"pattern": "%.1f",
|
||||
"readOnly": true
|
||||
},
|
||||
"refresh": true,
|
||||
"actions": []
|
||||
},
|
||||
{
|
||||
"property": "filter-life-level",
|
||||
"siid": 4,
|
||||
"piid": 1,
|
||||
"friendlyName": "Filter - Filter Life Level",
|
||||
"channel": "filter_life_level",
|
||||
"type": "Number:Dimensionless",
|
||||
"unit": "percentage",
|
||||
"stateDescription": {
|
||||
"minimum": 0,
|
||||
"maximum": 100,
|
||||
"step": 1,
|
||||
"pattern": "%.0f %unit%",
|
||||
"readOnly": true
|
||||
},
|
||||
"refresh": true,
|
||||
"actions": []
|
||||
},
|
||||
{
|
||||
"property": "filter-used-time",
|
||||
"siid": 4,
|
||||
"piid": 3,
|
||||
"friendlyName": "Filter - Filter Used Time",
|
||||
"channel": "filter_used_time",
|
||||
"type": "Number:Time",
|
||||
"unit": "hours",
|
||||
"stateDescription": {
|
||||
"minimum": 0,
|
||||
"maximum": 65000,
|
||||
"step": 1,
|
||||
"pattern": "%.0f %unit%",
|
||||
"readOnly": true
|
||||
},
|
||||
"refresh": true,
|
||||
"actions": []
|
||||
},
|
||||
{
|
||||
"property": "alarm",
|
||||
"siid": 6,
|
||||
"piid": 1,
|
||||
"friendlyName": "Alarm - Alarm",
|
||||
"channel": "alarm",
|
||||
"type": "Switch",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_properties",
|
||||
"parameterType": "ONOFFBOOL"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "brightness",
|
||||
"siid": 7,
|
||||
"piid": 2,
|
||||
"friendlyName": "Screen - Brightness",
|
||||
"channel": "brightness",
|
||||
"type": "Number",
|
||||
"stateDescription": {
|
||||
"minimum": 0,
|
||||
"maximum": 8,
|
||||
"step": 1,
|
||||
"pattern": "%.0f"
|
||||
},
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_properties",
|
||||
"parameterType": "NUMBER"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "physical-controls-locked",
|
||||
"siid": 8,
|
||||
"piid": 1,
|
||||
"friendlyName": "Physical Control Locked - Physical Control Locked",
|
||||
"channel": "physical_controls_locked",
|
||||
"type": "Switch",
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_properties",
|
||||
"parameterType": "ONOFFBOOL"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "moto-speed-rpm",
|
||||
"siid": 9,
|
||||
"piid": 1,
|
||||
"friendlyName": "Custom Service - Moto Speed Rpm",
|
||||
"channel": "moto_speed_rpm",
|
||||
"type": "Number",
|
||||
"stateDescription": {
|
||||
"minimum": 0,
|
||||
"maximum": 65535,
|
||||
"step": 1,
|
||||
"pattern": "%.1f",
|
||||
"readOnly": true
|
||||
},
|
||||
"refresh": true,
|
||||
"actions": []
|
||||
},
|
||||
{
|
||||
"property": "miio-lib-version",
|
||||
"siid": 9,
|
||||
"piid": 2,
|
||||
"friendlyName": "Custom Service - Miio Lib Version",
|
||||
"channel": "miio_lib_version",
|
||||
"type": "String",
|
||||
"stateDescription": {
|
||||
"readOnly": true
|
||||
},
|
||||
"refresh": true,
|
||||
"actions": []
|
||||
},
|
||||
{
|
||||
"property": "favorite-speed",
|
||||
"siid": 9,
|
||||
"piid": 3,
|
||||
"friendlyName": "Custom Service - Favorite Speed",
|
||||
"channel": "favorite_speed",
|
||||
"type": "Number",
|
||||
"stateDescription": {
|
||||
"minimum": 300,
|
||||
"maximum": 2200,
|
||||
"step": 1,
|
||||
"pattern": "%.1f"
|
||||
},
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_properties",
|
||||
"parameterType": "STRING"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"property": "aqi-updata-heartbeat",
|
||||
"siid": 9,
|
||||
"piid": 4,
|
||||
"friendlyName": "Custom Service - Aqi Updata Heartbeat",
|
||||
"channel": "aqi_updata_heartbeat",
|
||||
"type": "Number:Time",
|
||||
"unit": "seconds",
|
||||
"stateDescription": {
|
||||
"minimum": 0,
|
||||
"maximum": 65534,
|
||||
"step": 1,
|
||||
"pattern": "%.0f %unit%"
|
||||
},
|
||||
"refresh": true,
|
||||
"actions": [
|
||||
{
|
||||
"command": "set_properties",
|
||||
"parameterType": "NUMBER"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"readmeComment": "Specified action for filter reset \u003cbr /\u003e`action{\"did\":\"filter-reset-filter-life\",\"siid\":4,\"aiid\":1,\"in\":[3.0]}`\u003cbr /\u003eHowever, this has not been successfully tested yet.",
|
||||
"experimental": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user