[miio] add support 5 zhimi heaters (#10231)

* [miio] Add zhimi heaters

add new
zhimi.heater.ma2 Mi Smart Space Heater S
zhimi.heater.ma3 Mi Smart Baseboard Heater E
zhimi.heater.mc2 Mi Smart Space Heater S
zhimi.heater.na1 Smartmi Smart Fan
zhimi.heater.nb1 Smartmi Smart Fan Heater

improving existing
zhimi.heater.za1 Smartmi Radiant Heater Smart Version
zhimi.heater.za2 Smartmi Smart Convector Heater 1S
zhimi.heater.zb1 Smartmi Smart Convector Heater 1S

* [miio] add some more options
* remove accidental development file
* [miio] fix number:duration
* [miio] remove channeltype from heaters

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This commit is contained in:
Marcel
2021-02-26 00:45:56 +01:00
committed by GitHub
parent cdf044c070
commit d16bb98ed3
12 changed files with 1797 additions and 94 deletions

View File

@@ -350,6 +350,11 @@ public enum MiIoDevices {
ZHIMI_FAN_ZA3("zhimi.fan.za3", "Smartmi Standing Fan 2", THING_TYPE_BASIC),
ZHIMI_FAN_ZA4("zhimi.fan.za4", "Smartmi Standing Fan 2S", THING_TYPE_BASIC),
ZHIMI_FAN_ZA5("zhimi.fan.za5", "Smartmi Standing Fan 3 ", THING_TYPE_BASIC),
ZHIMI_HEATER_MA2("zhimi.heater.ma2", "Mi Smart Space Heater S", THING_TYPE_BASIC),
ZHIMI_HEATER_MA3("zhimi.heater.ma3", "Mi Smart Baseboard Heater E", THING_TYPE_BASIC),
ZHIMI_HEATER_MC2("zhimi.heater.mc2", "Mi Smart Space Heater S", THING_TYPE_BASIC),
ZHIMI_HEATER_NA1("zhimi.heater.na1", "Smartmi Smart Fan", THING_TYPE_BASIC),
ZHIMI_HEATER_NB1("zhimi.heater.nb1", "Smartmi Smart Fan Heater", THING_TYPE_BASIC),
ZHIMI_HEATER_ZA1("zhimi.heater.za1", "Smartmi Radiant Heater Smart Version", THING_TYPE_BASIC),
ZHIMI_HEATER_ZA2("zhimi.heater.za2", "Smartmi Smart Convector Heater 1S", THING_TYPE_BASIC),
ZHIMI_HEATER_ZB1("zhimi.heater.zb1", "Smartmi Smart Convector Heater 1S", THING_TYPE_BASIC),

View File

@@ -54,7 +54,7 @@
"piid": 7,
"friendlyName": "Working Time",
"channel": "working-time",
"type": "Number:Duration",
"type": "Number:Time",
"unit": "minutes",
"stateDescription": {
"minimum": 0,
@@ -184,7 +184,7 @@
"piid": 1,
"friendlyName": "Imilab Timer - On Duration",
"channel": "on-duration",
"type": "Number:Duration",
"type": "Number:Time",
"unit": "seconds",
"stateDescription": {
"minimum": 0,
@@ -207,7 +207,7 @@
"piid": 2,
"friendlyName": "Imilab Timer - Off Duration",
"channel": "off-duration",
"type": "Number:Duration",
"type": "Number:Time",
"unit": "seconds",
"stateDescription": {
"minimum": 0,

View File

@@ -405,7 +405,7 @@
"piid": 5,
"friendlyName": "Maintenance - Running Duration",
"channel": "running-duration",
"type": "Number:Duration",
"type": "Number:Time",
"unit": "seconds",
"stateDescription": {
"minimum": 0,

View File

@@ -0,0 +1,241 @@
{
"deviceMapping": {
"id": [
"zhimi.heater.ma2"
],
"propertyMethod": "get_properties",
"maxProperties": 1,
"channels": [
{
"property": "on",
"siid": 2,
"piid": 1,
"friendlyName": "Heater - 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": "Heater - Fault",
"channel": "fault",
"type": "Number",
"stateDescription": {
"readOnly": true,
"options": [
{
"value": "0",
"label": "No Error"
},
{
"value": "1",
"label": "NTC Connect Error"
},
{
"value": "2",
"label": "High Temperature Alarm"
},
{
"value": "3",
"label": "EEPROM Error"
},
{
"value": "4",
"label": "Multi Errors"
}
]
},
"refresh": true,
"actions": [],
"readmeComment": "Value mapping [\"0\"\u003d\"No Error\",\"1\"\u003d\"NTC Connect Error\",\"2\"\u003d\"High Temperature Alarm\",\"3\"\u003d\"EEPROM Error\",\"4\"\u003d\"Multi Errors\"]"
},
{
"property": "target-temperature",
"siid": 2,
"piid": 5,
"friendlyName": "Heater - Target Temperature",
"channel": "target_temperature",
"type": "Number:Temperature",
"unit": "celsius",
"stateDescription": {
"minimum": 18,
"maximum": 28,
"step": 1,
"pattern": "%.1f %unit%"
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "NUMBER"
}
],
"category": "temperature",
"tags": [
"Setpoint",
"Temperature"
]
},
{
"property": "countdown-time",
"siid": 3,
"piid": 1,
"friendlyName": "Countdown - Countdown Time",
"channel": "countdown_time",
"type": "Number:Time",
"unit": "hours",
"stateDescription": {
"minimum": 0,
"maximum": 12,
"step": 1,
"pattern": "%.0f %unit%"
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "STRING"
}
]
},
{
"property": "temperature",
"siid": 4,
"piid": 7,
"friendlyName": "Environment - Temperature",
"channel": "temperature",
"type": "Number:Temperature",
"unit": "celsius",
"stateDescription": {
"minimum": -30,
"maximum": 100,
"pattern": "%.1f %unit%",
"readOnly": true
},
"refresh": true,
"actions": [],
"category": "temperature",
"tags": [
"Measurement",
"Temperature"
]
},
{
"property": "physical-controls-locked",
"siid": 5,
"piid": 1,
"friendlyName": "Physical Control Locked - Physical Control Locked",
"channel": "physical_controls_locked",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
]
},
{
"property": "alarm",
"siid": 6,
"piid": 1,
"friendlyName": "Alarm - Alarm",
"channel": "alarm",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
],
"category": "alarm"
},
{
"property": "brightness",
"siid": 7,
"piid": 3,
"friendlyName": "Indicator Light - Brightness",
"channel": "brightness",
"type": "Number:Dimensionless",
"unit": "percentage",
"stateDescription": {
"options": [
{
"value": "0",
"label": "Bright"
},
{
"value": "1",
"label": "Dark"
},
{
"value": "2",
"label": "Extinguished"
}
]
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "NUMBER"
}
],
"category": "light",
"tags": [
"Control",
"Light"
],
"readmeComment": "Value mapping [\"0\"\u003d\"Bright\",\"1\"\u003d\"Dark\",\"2\"\u003d\"Extinguished\"]"
},
{
"property": "hw-enable",
"siid": 8,
"piid": 8,
"friendlyName": "Private Service - Hw Enable",
"channel": "hw_enable",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
]
},
{
"property": "use-time",
"siid": 8,
"piid": 9,
"friendlyName": "Private Service - Use Time",
"channel": "use_time",
"type": "Number:Time",
"unit": "seconds",
"stateDescription": {
"minimum": 0,
"maximum": 2147483647,
"step": 1,
"pattern": "%.0f %unit%",
"readOnly": true
},
"refresh": true,
"actions": [],
"category": "time"
}
],
"experimental": true
}
}

View File

@@ -0,0 +1,288 @@
{
"deviceMapping": {
"id": [
"zhimi.heater.ma3"
],
"propertyMethod": "get_properties",
"maxProperties": 1,
"channels": [
{
"property": "",
"friendlyName": "Actions",
"channel": "actions",
"type": "String",
"stateDescription": {
"options": [
{
"value": "private-service-toggle-switch",
"label": "Toggle Private Service"
}
]
},
"actions": [
{
"command": "action",
"parameterType": "EMPTY",
"siid": 8,
"aiid": 1,
"condition": {
"name": "matchValue",
"parameters": [
{
"matchValue": "private-service-toggle-switch"
}
]
}
}
]
},
{
"property": "on",
"siid": 2,
"piid": 1,
"friendlyName": "Heater - 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": "Heater - Fault",
"channel": "fault",
"type": "Number",
"stateDescription": {
"readOnly": true,
"options": [
{
"value": "0",
"label": "No Error"
},
{
"value": "1",
"label": "NTC Connect Error"
},
{
"value": "2",
"label": "High Temperature Alarm"
},
{
"value": "3",
"label": "EEPROM Error"
},
{
"value": "4",
"label": "Multi Errors"
}
]
},
"refresh": true,
"actions": [],
"readmeComment": "Value mapping [\"0\"\u003d\"No Error\",\"1\"\u003d\"NTC Connect Error\",\"2\"\u003d\"High Temperature Alarm\",\"3\"\u003d\"EEPROM Error\",\"4\"\u003d\"Multi Errors\"]"
},
{
"property": "target-temperature",
"siid": 2,
"piid": 5,
"friendlyName": "Heater - Target Temperature",
"channel": "target_temperature",
"type": "Number:Temperature",
"unit": "celsius",
"stateDescription": {
"minimum": 16,
"maximum": 28,
"step": 1,
"pattern": "%.1f %unit%"
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "NUMBER"
}
],
"category": "temperature",
"tags": [
"Setpoint",
"Temperature"
]
},
{
"property": "mode",
"siid": 2,
"piid": 6,
"friendlyName": "Heater - Mode",
"channel": "mode",
"type": "Number",
"stateDescription": {
"options": [
{
"value": "0",
"label": "Auto"
},
{
"value": "1",
"label": "LL Mode"
},
{
"value": "2",
"label": "HH Mode"
}
]
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "NUMBER"
}
],
"readmeComment": "Value mapping [\"0\"\u003d\"Auto\",\"1\"\u003d\"LL Mode\",\"2\"\u003d\"HH Mode\"]"
},
{
"property": "countdown-time",
"siid": 3,
"piid": 1,
"friendlyName": "Countdown - Countdown Time",
"channel": "countdown_time",
"type": "Number:Time",
"unit": "seconds",
"stateDescription": {
"minimum": 0,
"maximum": 43200,
"step": 1,
"pattern": "%.0f %unit%"
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "STRING"
}
]
},
{
"property": "temperature",
"siid": 4,
"piid": 7,
"friendlyName": "Environment - Temperature",
"channel": "temperature",
"type": "Number:Temperature",
"unit": "celsius",
"stateDescription": {
"minimum": -30,
"maximum": 100,
"pattern": "%.1f %unit%",
"readOnly": true
},
"refresh": true,
"actions": [],
"category": "temperature",
"tags": [
"Measurement",
"Temperature"
]
},
{
"property": "physical-controls-locked",
"siid": 5,
"piid": 1,
"friendlyName": "Physical Control Locked - Physical Control Locked",
"channel": "physical_controls_locked",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
]
},
{
"property": "alarm",
"siid": 6,
"piid": 1,
"friendlyName": "Alarm - Alarm",
"channel": "alarm",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
],
"category": "alarm"
},
{
"property": "brightness",
"siid": 7,
"piid": 3,
"friendlyName": "Indicator Light - Brightness",
"channel": "brightness",
"type": "Number:Dimensionless",
"unit": "percentage",
"stateDescription": {
"options": [
{
"value": "0",
"label": "Bright"
},
{
"value": "1",
"label": "Dark"
},
{
"value": "2",
"label": "Extinguished"
}
]
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "NUMBER"
}
],
"category": "light",
"tags": [
"Control",
"Light"
],
"readmeComment": "Value mapping [\"0\"\u003d\"Bright\",\"1\"\u003d\"Dark\",\"2\"\u003d\"Extinguished\"]"
},
{
"property": "use-time",
"siid": 8,
"piid": 9,
"friendlyName": "Private Service - Use Time",
"channel": "use_time",
"type": "Number:Time",
"unit": "seconds",
"stateDescription": {
"minimum": 0,
"maximum": 2147483647,
"step": 1,
"pattern": "%.0f %unit%",
"readOnly": true
},
"refresh": true,
"actions": []
}
],
"readmeComment": "Identified manual actions for execution\u003cbr /\u003e`action{\"did\":\"private-service-toggle-switch\",\"siid\":8,\"aiid\":1,\"in\":[]}`\u003cbr /\u003ePlease test and feedback if they are working to they can be linked to a channel.",
"experimental": true
}
}

View File

@@ -0,0 +1,299 @@
{
"deviceMapping": {
"id": [
"zhimi.heater.mc2"
],
"propertyMethod": "get_properties",
"maxProperties": 1,
"channels": [
{
"property": "on",
"siid": 2,
"piid": 1,
"friendlyName": "Heater - Power",
"channel": "on",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
],
"category": "switch",
"tags": [
"Switch"
]
},
{
"property": "fault",
"siid": 2,
"piid": 2,
"friendlyName": "Heater - Device Fault",
"channel": "fault",
"type": "Number",
"stateDescription": {
"readOnly": true,
"options": [
{
"value": "0",
"label": "No Error"
},
{
"value": "1",
"label": "NTC Connect Error"
},
{
"value": "2",
"label": "High Temperature Alarm"
},
{
"value": "3",
"label": "EEPROM Error"
},
{
"value": "4",
"label": "Multi Errors"
}
]
},
"refresh": true,
"actions": [],
"readmeComment": "Value mapping [\"0\"\u003d\"No Error\",\"1\"\u003d\"NTC Connect Error\",\"2\"\u003d\"High Temperature Alarm\",\"3\"\u003d\"EEPROM Error\",\"4\"\u003d\"Multi Errors\"]"
},
{
"property": "target-temperature",
"siid": 2,
"piid": 5,
"friendlyName": "Heater - Target Temperature",
"channel": "target_temperature",
"type": "Number:Temperature",
"unit": "celsius",
"stateDescription": {
"minimum": 18,
"maximum": 28,
"step": 1,
"pattern": "%.1f %unit%"
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "NUMBER"
}
],
"category": "temperature",
"tags": [
"Setpoint",
"Temperature"
]
},
{
"property": "countdown-time",
"siid": 3,
"piid": 1,
"friendlyName": "Countdown - Countdown Time",
"channel": "countdown_time",
"type": "Number:Time",
"unit": "hours",
"stateDescription": {
"minimum": 0,
"maximum": 12,
"step": 1,
"pattern": "%.0f %unit%"
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "STRING"
}
]
},
{
"property": "temperature",
"siid": 4,
"piid": 7,
"friendlyName": "Environment - Temperature",
"channel": "temperature",
"type": "Number:Temperature",
"unit": "celsius",
"stateDescription": {
"minimum": -30,
"maximum": 100,
"pattern": "%.1f %unit%",
"readOnly": true
},
"refresh": true,
"actions": [],
"category": "temperature",
"tags": [
"Measurement",
"Temperature"
]
},
{
"property": "physical-controls-locked",
"siid": 5,
"piid": 1,
"friendlyName": "Physical Control Locked - Physical Control Locked",
"channel": "physical_controls_locked",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
]
},
{
"property": "alarm",
"siid": 6,
"piid": 1,
"friendlyName": "Alarm - Alarm",
"channel": "alarm",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
],
"category": "alarm"
},
{
"property": "brightness",
"siid": 7,
"piid": 3,
"friendlyName": "Indicator Light - Brightness",
"channel": "brightness",
"type": "Number",
"stateDescription": {
"options": [
{
"value": "0",
"label": "Bright"
},
{
"value": "1",
"label": "Dark"
},
{
"value": "2",
"label": "Extinguished"
}
]
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "NUMBER"
}
],
"category": "light",
"tags": [
"Control",
"Light"
],
"readmeComment": "Value mapping [\"0\"\u003d\"Bright\",\"1\"\u003d\"Dark\",\"2\"\u003d\"Extinguished\"]"
},
{
"property": "hw-enable",
"siid": 8,
"piid": 8,
"friendlyName": "Private Service - Hw Enable",
"channel": "hw_enable",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
]
},
{
"property": "use-time",
"siid": 8,
"piid": 9,
"friendlyName": "Private Service - Use Time",
"channel": "use_time",
"type": "Number:Time",
"unit": "seconds",
"stateDescription": {
"minimum": 0,
"maximum": 2147483647,
"step": 1,
"pattern": "%.0f %unit%",
"readOnly": true
},
"refresh": true,
"actions": []
},
{
"property": "country-code",
"siid": 8,
"piid": 10,
"friendlyName": "Private Service - Country Code",
"channel": "country_code",
"type": "Number",
"stateDescription": {
"options": [
{
"value": "0",
"label": "Unknown"
},
{
"value": "1",
"label": "US"
},
{
"value": "82",
"label": "KR"
},
{
"value": "44",
"label": "EU"
},
{
"value": "81",
"label": "JP"
},
{
"value": "7",
"label": "RU"
},
{
"value": "86",
"label": "CN"
},
{
"value": "852",
"label": "HK"
},
{
"value": "886",
"label": "TW"
},
{
"value": "33",
"label": "FR"
}
]
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "NUMBER"
}
],
"readmeComment": "Value mapping [\"0\"\u003d\"Unknown\",\"1\"\u003d\"US\",\"82\"\u003d\"KR\",\"44\"\u003d\"EU\",\"81\"\u003d\"JP\",\"7\"\u003d\"RU\",\"86\"\u003d\"CN\",\"852\"\u003d\"HK\",\"886\"\u003d\"TW\",\"33\"\u003d\"FR\"]"
}
],
"experimental": true
}
}

View File

@@ -0,0 +1,228 @@
{
"deviceMapping": {
"id": [
"zhimi.heater.na1"
],
"propertyMethod": "get_properties",
"maxProperties": 1,
"channels": [
{
"property": "on",
"siid": 2,
"piid": 2,
"friendlyName": "Heater - Power",
"channel": "on",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
],
"category": "switch",
"tags": [
"Switch"
]
},
{
"property": "fault",
"siid": 2,
"piid": 1,
"friendlyName": "Heater - Device Fault",
"channel": "fault",
"type": "Number",
"stateDescription": {
"readOnly": true,
"options": [
{
"value": "0",
"label": "No Error"
},
{
"value": "1",
"label": "NTC Connect Error"
},
{
"value": "2",
"label": "High Temperature Alarm"
},
{
"value": "3",
"label": "EEPROM Error"
},
{
"value": "4",
"label": "Multi Errors"
}
]
},
"refresh": true,
"actions": [],
"readmeComment": "Value mapping [\"0\"\u003d\"No Error\",\"1\"\u003d\"NTC Connect Error\",\"2\"\u003d\"High Temperature Alarm\",\"3\"\u003d\"EEPROM Error\",\"4\"\u003d\"Multi Errors\"]"
},
{
"property": "heat-level",
"siid": 2,
"piid": 3,
"friendlyName": "Heater - Heat Level",
"channel": "heat_level",
"type": "Number",
"stateDescription": {
"options": [
{
"value": "1",
"label": "High"
},
{
"value": "2",
"label": "Low"
}
]
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "NUMBER"
}
],
"readmeComment": "Value mapping [\"1\"\u003d\"High\",\"2\"\u003d\"Low\"]"
},
{
"property": "mode",
"siid": 2,
"piid": 4,
"friendlyName": "Heater - Mode",
"channel": "mode",
"type": "Number",
"stateDescription": {
"options": [
{
"value": "0",
"label": "Fan not swing"
},
{
"value": "1",
"label": "Fan swing"
}
]
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "NUMBER"
}
],
"readmeComment": "Value mapping [\"0\"\u003d\"Fan not swing\",\"1\"\u003d\"Fan swing\"]"
},
{
"property": "alarm",
"siid": 3,
"piid": 1,
"friendlyName": "Alarm - Alarm",
"channel": "alarm",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
],
"category": "alarm"
},
{
"property": "countdown-time",
"siid": 4,
"piid": 1,
"friendlyName": "Countdown - Countdown Time",
"channel": "countdown_time",
"type": "Number:Time",
"unit": "hours",
"stateDescription": {
"minimum": 0,
"maximum": 12,
"step": 1,
"pattern": "%.0f %unit%"
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "STRING"
}
]
},
{
"property": "brightness",
"siid": 6,
"piid": 1,
"friendlyName": "Indicator Light - Brightness",
"channel": "brightness",
"type": "Number",
"stateDescription": {
"options": [
{
"value": "0",
"label": "Bright"
},
{
"value": "1",
"label": "Dark"
},
{
"value": "2",
"label": "Extinguished"
}
]
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "NUMBER"
}
],
"category": "light",
"tags": [
"Control",
"Light"
],
"readmeComment": "Value mapping [\"0\"\u003d\"Bright\",\"1\"\u003d\"Dark\",\"2\"\u003d\"Extinguished\"]"
},
{
"property": "physical-controls-locked",
"siid": 7,
"piid": 1,
"friendlyName": "Physical Control Locked - Physical Control Locked",
"channel": "physical_controls_locked",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
]
},
{
"property": "return-to-middle",
"siid": 8,
"piid": 3,
"friendlyName": "Private Service - Return To Middle",
"channel": "return_to_middle",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
]
}
],
"experimental": true
}
}

View File

@@ -0,0 +1,342 @@
{
"deviceMapping": {
"id": [
"zhimi.heater.nb1"
],
"propertyMethod": "get_properties",
"maxProperties": 1,
"channels": [
{
"property": "on",
"siid": 2,
"piid": 2,
"friendlyName": "Heater - Power",
"channel": "on",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
],
"category": "switch",
"tags": [
"Switch"
]
},
{
"property": "fault",
"siid": 2,
"piid": 1,
"friendlyName": "Heater - Device Fault",
"channel": "fault",
"type": "Number",
"stateDescription": {
"readOnly": true,
"options": [
{
"value": "0",
"label": "No Error"
},
{
"value": "1",
"label": "NTC Connect Error"
},
{
"value": "2",
"label": "High Temperature Alarm"
},
{
"value": "3",
"label": "EEPROM Error"
},
{
"value": "4",
"label": "Multi Errors"
}
]
},
"refresh": true,
"actions": [],
"readmeComment": "Value mapping [\"0\"\u003d\"No Error\",\"1\"\u003d\"NTC Connect Error\",\"2\"\u003d\"High Temperature Alarm\",\"3\"\u003d\"EEPROM Error\",\"4\"\u003d\"Multi Errors\"]"
},
{
"property": "heat-level",
"siid": 2,
"piid": 3,
"friendlyName": "Heater - Heat Level",
"channel": "heat_level",
"type": "Number",
"stateDescription": {
"options": [
{
"value": "1",
"label": "High"
},
{
"value": "2",
"label": "Low"
}
]
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "NUMBER"
}
],
"readmeComment": "Value mapping [\"1\"\u003d\"High\",\"2\"\u003d\"Low\"]"
},
{
"property": "mode",
"siid": 2,
"piid": 4,
"friendlyName": "Heater - Mode",
"channel": "mode",
"type": "Number",
"stateDescription": {
"options": [
{
"value": "0",
"label": "Fan not swing"
},
{
"value": "1",
"label": "Fan swing"
}
]
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "NUMBER"
}
],
"readmeComment": "Value mapping [\"0\"\u003d\"Fan not swing\",\"1\"\u003d\"Fan swing\"]"
},
{
"property": "target-temperature",
"siid": 2,
"piid": 5,
"friendlyName": "Heater - Target Temperature",
"channel": "target_temperature",
"type": "Number:Temperature",
"unit": "celsius",
"stateDescription": {
"minimum": 16,
"maximum": 30,
"step": 1,
"pattern": "%.1f %unit%"
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "NUMBER"
}
]
},
{
"property": "temperature",
"siid": 9,
"piid": 7,
"friendlyName": "Environment - Temperature",
"channel": "temperature",
"type": "Number:Temperature",
"unit": "celsius",
"stateDescription": {
"minimum": -30,
"maximum": 100,
"pattern": "%.1f %unit%",
"readOnly": true
},
"refresh": true,
"actions": []
},
{
"property": "alarm",
"siid": 3,
"piid": 1,
"friendlyName": "Alarm - Alarm",
"channel": "alarm",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
],
"category": "alarm"
},
{
"property": "countdown-time",
"siid": 4,
"piid": 1,
"friendlyName": "Countdown - Countdown Time",
"channel": "countdown_time",
"type": "Number:Time",
"unit": "hours",
"stateDescription": {
"minimum": 0,
"maximum": 12,
"step": 1,
"pattern": "%.0f %unit%"
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "STRING"
}
]
},
{
"property": "brightness",
"siid": 6,
"piid": 1,
"friendlyName": "Indicator Light - Brightness",
"channel": "brightness",
"type": "Number",
"stateDescription": {
"options": [
{
"value": "0",
"label": "Bright"
},
{
"value": "1",
"label": "Dark"
},
{
"value": "2",
"label": "Extinguished"
}
]
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "NUMBER"
}
],
"category": "light",
"tags": [
"Control",
"Light"
],
"readmeComment": "Value mapping [\"0\"\u003d\"Bright\",\"1\"\u003d\"Dark\",\"2\"\u003d\"Extinguished\"]"
},
{
"property": "physical-controls-locked",
"siid": 7,
"piid": 1,
"friendlyName": "Physical Control Locked - Physical Control Locked",
"channel": "physical_controls_locked",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
]
},
{
"property": "return-to-middle",
"siid": 8,
"piid": 3,
"friendlyName": "Private Service - Return To Middle",
"channel": "return_to_middle",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
]
},
{
"property": "country-code",
"siid": 8,
"piid": 4,
"friendlyName": "Private Service - Country Code",
"channel": "country_code",
"type": "Number",
"stateDescription": {
"options": [
{
"value": "0",
"label": "Unknown"
},
{
"value": "1",
"label": "US"
},
{
"value": "82",
"label": "KR"
},
{
"value": "44",
"label": "EU"
},
{
"value": "81",
"label": "JP"
},
{
"value": "7",
"label": "RU"
},
{
"value": "86",
"label": "CN"
},
{
"value": "852",
"label": "HK"
},
{
"value": "886",
"label": "TW"
},
{
"value": "33",
"label": "FR"
}
]
},
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "NUMBER"
}
],
"readmeComment": "Value mapping [\"0\"\u003d\"Unknown\",\"1\"\u003d\"US\",\"82\"\u003d\"KR\",\"44\"\u003d\"EU\",\"81\"\u003d\"JP\",\"7\"\u003d\"RU\",\"86\"\u003d\"CN\",\"852\"\u003d\"HK\",\"886\"\u003d\"TW\",\"33\"\u003d\"FR\"]"
},
{
"property": "hw-en",
"siid": 8,
"piid": 5,
"friendlyName": "Private Service - Hw En",
"channel": "hw_en",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
]
}
],
"experimental": true
}
}

View File

@@ -10,7 +10,6 @@
"property": "power",
"friendlyName": "Power",
"channel": "power",
"channelType": "power",
"type": "Switch",
"refresh": true,
"actions": [
@@ -69,7 +68,6 @@
"property": "buzzer",
"friendlyName": "Buzzer Status",
"channel": "buzzer",
"channelType": "buzzer",
"type": "Switch",
"refresh": true,
"actions": [
@@ -96,7 +94,6 @@
"property": "child_lock",
"friendlyName": "Child Lock",
"channel": "childlock",
"channelType": "childlock",
"type": "Switch",
"refresh": true,
"actions": [
@@ -141,7 +138,6 @@
"property": "use_time",
"friendlyName": "Run Time",
"channel": "usedhours",
"channelType": "usedhours",
"type": "Number:Time",
"unit": "hours",
"refresh": true,

View File

@@ -12,10 +12,35 @@
"piid": 1,
"friendlyName": "Heater - Device Fault",
"channel": "fault",
"channelType": "miot_uint32",
"type": "Number",
"stateDescription": {
"readOnly": true,
"options": [
{
"value": "0",
"label": "No Error"
},
{
"value": "1",
"label": "NTC\tConnect Error"
},
{
"value": "2",
"label": "High Temperature Alarm"
},
{
"value": "3",
"label": "EEPROM Error"
},
{
"value": "4",
"label": "Multi Errors"
}
]
},
"refresh": true,
"actions": []
"actions": [],
"readmeComment": "Value mapping [\"0\"\u003d\"No Error\",\"1\"\u003d\"NTC\tConnect Error\",\"2\"\u003d\"High Temperature Alarm\",\"3\"\u003d\"EEPROM Error\",\"4\"\u003d\"Multi Errors\"]"
},
{
"property": "on",
@@ -23,7 +48,6 @@
"piid": 2,
"friendlyName": "Heater - Power",
"channel": "on",
"channelType": "miot_bool",
"type": "Switch",
"refresh": true,
"actions": [
@@ -43,9 +67,14 @@
"piid": 6,
"friendlyName": "Heater - Target Temperature",
"channel": "target-temperature",
"channelType": "ZhimiHeaterZa2_target-temperature",
"type": "Number:Temperature",
"unit": "CELCIUS",
"stateDescription": {
"minimum": 16,
"maximum": 28,
"step": 1,
"pattern": "%.1f %unit%"
},
"refresh": true,
"actions": [
{
@@ -65,7 +94,6 @@
"piid": 1,
"friendlyName": "Alarm - Alarm",
"channel": "alarm",
"channelType": "miot_bool",
"type": "Switch",
"refresh": true,
"actions": [
@@ -82,9 +110,14 @@
"piid": 1,
"friendlyName": "Countdown - Countdown Time",
"channel": "countdown-time",
"channelType": "time",
"type": "Number:Time",
"unit": "hours",
"stateDescription": {
"minimum": 0,
"maximum": 8,
"step": 1,
"pattern": "%.0f %unit%"
},
"refresh": true,
"actions": [
{
@@ -101,6 +134,13 @@
"channel": "relative-humidity",
"type": "Number:Dimensionless",
"unit": "PERCENT",
"stateDescription": {
"minimum": 0,
"maximum": 100,
"step": 1,
"pattern": "%.0f %unit%",
"readOnly": true
},
"refresh": true,
"actions": [],
"tags": [
@@ -117,6 +157,8 @@
"type": "Number:Temperature",
"unit": "CELCIUS",
"stateDescription": {
"minimum": -30,
"maximum": 100,
"pattern": "%.1f %unit%",
"readOnly": true
},
@@ -134,7 +176,23 @@
"piid": 1,
"friendlyName": "Indicator Light - Brightness",
"channel": "brightness",
"type": "Dimmer",
"type": "Number",
"stateDescription": {
"options": [
{
"value": "0",
"label": "Bright"
},
{
"value": "1",
"label": "Dark"
},
{
"value": "2",
"label": "Extinguished"
}
]
},
"refresh": true,
"actions": [
{
@@ -146,7 +204,8 @@
"tags": [
"Control",
"Light"
]
],
"readmeComment": "Value mapping [\"0\"\u003d\"Bright\",\"1\"\u003d\"Dark\",\"2\"\u003d\"Extinguished\"]"
},
{
"property": "physical-controls-locked",
@@ -154,7 +213,6 @@
"piid": 1,
"friendlyName": "Physical Control Locked - Physical Controls Locked",
"channel": "physical-controls-locked",
"channelType": "miot_bool",
"type": "Switch",
"refresh": true,
"actions": [
@@ -170,9 +228,15 @@
"piid": 7,
"friendlyName": "Private-Service - Use Time",
"channel": "use-time",
"channelType": "time",
"type": "Number:Time",
"unit": "seconds",
"stateDescription": {
"minimum": 0,
"maximum": -1,
"step": 1,
"pattern": "%.0f %unit%",
"readOnly": true
},
"refresh": true,
"actions": [],
"category": "time"

View File

@@ -6,24 +6,12 @@
"propertyMethod": "get_properties",
"maxProperties": 1,
"channels": [
{
"property": "fault",
"siid": 2,
"piid": 1,
"friendlyName": "Heater - Device Fault",
"channel": "fault",
"channelType": "miot_uint32",
"type": "Number",
"refresh": true,
"actions": []
},
{
"property": "on",
"siid": 2,
"piid": 2,
"friendlyName": "Heater - Power",
"channel": "on",
"channelType": "miot_bool",
"type": "Switch",
"refresh": true,
"actions": [
@@ -37,15 +25,56 @@
"Switch"
]
},
{
"property": "fault",
"siid": 2,
"piid": 1,
"friendlyName": "Heater - Device Fault",
"channel": "fault",
"type": "Number",
"stateDescription": {
"readOnly": true,
"options": [
{
"value": "0",
"label": "No Error"
},
{
"value": "1",
"label": "NTC\tConnect Error"
},
{
"value": "2",
"label": "High Temperature Alarm"
},
{
"value": "3",
"label": "EEPROM Error"
},
{
"value": "4",
"label": "Multi Errors"
}
]
},
"refresh": true,
"actions": [],
"readmeComment": "Value mapping [\"0\"\u003d\"No Error\",\"1\"\u003d\"NTC\tConnect Error\",\"2\"\u003d\"High Temperature Alarm\",\"3\"\u003d\"EEPROM Error\",\"4\"\u003d\"Multi Errors\"]"
},
{
"property": "target-temperature",
"siid": 2,
"piid": 6,
"friendlyName": "Heater - Target Temperature",
"channel": "target-temperature",
"channelType": "ZhimiHeaterZa2_target-temperature",
"type": "Number:Temperature",
"unit": "CELCIUS",
"unit": "celsius",
"stateDescription": {
"minimum": 16,
"maximum": 28,
"step": 1,
"pattern": "%.1f %unit%"
},
"refresh": true,
"actions": [
{
@@ -65,7 +94,6 @@
"piid": 1,
"friendlyName": "Alarm - Alarm",
"channel": "alarm",
"channelType": "miot_bool",
"type": "Switch",
"refresh": true,
"actions": [
@@ -82,9 +110,14 @@
"piid": 1,
"friendlyName": "Countdown - Countdown Time",
"channel": "countdown-time",
"channelType": "time",
"type": "Number:Time",
"unit": "hours",
"stateDescription": {
"minimum": 0,
"maximum": 8,
"step": 1,
"pattern": "%.0f %unit%"
},
"refresh": true,
"actions": [
{
@@ -101,6 +134,13 @@
"channel": "relative-humidity",
"type": "Number:Dimensionless",
"unit": "PERCENT",
"stateDescription": {
"minimum": 0,
"maximum": 100,
"step": 1,
"pattern": "%.0f %unit%",
"readOnly": true
},
"refresh": true,
"actions": [],
"tags": [
@@ -117,6 +157,8 @@
"type": "Number:Temperature",
"unit": "CELCIUS",
"stateDescription": {
"minimum": -30,
"maximum": 100,
"pattern": "%.1f %unit%",
"readOnly": true
},
@@ -134,7 +176,23 @@
"piid": 1,
"friendlyName": "Indicator Light - Brightness",
"channel": "brightness",
"type": "Dimmer",
"type": "Number",
"stateDescription": {
"options": [
{
"value": "0",
"label": "Bright"
},
{
"value": "1",
"label": "Dark"
},
{
"value": "2",
"label": "Extinguished"
}
]
},
"refresh": true,
"actions": [
{
@@ -146,7 +204,8 @@
"tags": [
"Control",
"Light"
]
],
"readmeComment": "Value mapping [\"0\"\u003d\"Bright\",\"1\"\u003d\"Dark\",\"2\"\u003d\"Extinguished\"]"
},
{
"property": "physical-controls-locked",
@@ -154,7 +213,6 @@
"piid": 1,
"friendlyName": "Physical Control Locked - Physical Controls Locked",
"channel": "physical-controls-locked",
"channelType": "miot_bool",
"type": "Switch",
"refresh": true,
"actions": [
@@ -170,12 +228,17 @@
"piid": 7,
"friendlyName": "Private-Service - Use Time",
"channel": "use-time",
"channelType": "time",
"type": "Number:Time",
"unit": "seconds",
"stateDescription": {
"minimum": 0,
"maximum": 2147483647,
"step": 1,
"pattern": "%.0f %unit%",
"readOnly": true
},
"refresh": true,
"actions": [],
"category": "time"
"actions": []
},
{
"property": "country-code",
@@ -183,7 +246,6 @@
"piid": 8,
"friendlyName": "Private-Service - Country-Code",
"channel": "country-code",
"channelType": "ZhimiHeaterZb1_country-code",
"type": "Number",
"stateDescription": {
"readOnly": true,