[miio] Add Zhimi Heater za1 (#8743)

add model zhimi.heater.za1

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This commit is contained in:
Marcel
2020-10-14 22:59:38 +02:00
committed by GitHub
parent 5e2c5345eb
commit aef1d10f40
3 changed files with 148 additions and 0 deletions

View File

@@ -253,6 +253,7 @@ public enum MiIoDevices {
YL_CEILING1("yilai.light.ceiling1", "Yeelight yilai ceiling", THING_TYPE_BASIC),
YL_CEILING2("yilai.light.ceiling2", "Yeelight yilai ceiling", THING_TYPE_BASIC),
YL_CEILING3("yilai.light.ceiling3", "Yeelight yilai ceiling", THING_TYPE_BASIC),
ZHIMI_HEATER_ZA1("zhimi.heater.za1", "Zhimi Heater", THING_TYPE_BASIC),
UNKNOWN("unknown", "Unknown Mi IO Device", THING_TYPE_UNSUPPORTED);
public static MiIoDevices getType(String modelString) {

View File

@@ -0,0 +1,115 @@
{
"deviceMapping": {
"id": [
"zhimi.heater.za1"
],
"propertyMethod": "get_prop",
"maxProperties": 2,
"channels": [
{
"property": "power",
"friendlyName": "Power",
"channel": "power",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_power",
"parameterType": "ONOFF"
}
]
},
{
"property": "target_temperature",
"friendlyName": "Target Temperature",
"channel": "target_temperature",
"type": "Number",
"refresh": true,
"actions": [
{
"command": "set_target_temperature",
"parameterType": "NUMBER"
}
]
},
{
"property": "brightness",
"friendlyName": "Brightness",
"channel": "brightness",
"type": "Number",
"refresh": true,
"actions": [
{
"command": "set_brightness",
"parameterType": "NUMBER"
}
]
},
{
"property": "buzzer",
"friendlyName": "Buzzer Status",
"channel": "buzzer",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_buzzer",
"parameterType": "ONOFF"
}
]
},
{
"property": "relative_humidity",
"friendlyName": "Relative Humidity",
"channel": "relative_humidity",
"type": "Number",
"refresh": true,
"actions": []
},
{
"property": "child_lock",
"friendlyName": "Child Lock",
"channel": "childlock",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_child_lock",
"parameterType": "ONOFF"
}
]
},
{
"property": "theqmostat",
"friendlyName": "HW Switch",
"channel": "HWSwitch",
"type": "Switch",
"refresh": true,
"actions": [
{
"command": "set_theqmostat",
"parameterType": "ONOFF"
}
]
},
{
"property": "temperature",
"friendlyName": "Temperature",
"channel": "temperature",
"type": "Number",
"refresh": true,
"actions": []
},
{
"property": "use_time",
"friendlyName": "Run Time",
"channel": "usedhours",
"type": "Number",
"refresh": true,
"transformation": "SecondsToHours",
"actions": []
}
],
"experimental": true
}
}