[miio] add support for scishare smart capsule coffee machine s1102 (#9015)

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This commit is contained in:
Marcel
2020-11-13 23:48:15 +01:00
committed by GitHub
parent ba4c96d99d
commit 13a37f0c8c
3 changed files with 142 additions and 0 deletions

View File

@@ -92,6 +92,8 @@ public enum MiIoDevices {
MRBOND_AIRER_M1PRO("mrbond.airer.m1pro", "Mr Bond M1 Pro Smart Clothes Dryer", THING_TYPE_BASIC),
MRBOND_AIRER_M1S("mrbond.airer.m1s", "Mr Bond M1 Smart Clothes Dryer", THING_TYPE_BASIC),
MRBOND_AIRER_M1SUPER("mrbond.airer.m1super", "Mr Bond M1 Super Smart Clothes Dryer", THING_TYPE_BASIC),
SCISHARE_COFFEE_S1102("scishare.coffee.s1102", "Xiaomi Scishare smart capsule coffee machine", THING_TYPE_BASIC),
SCISHARE_COFFEE_S1301("scishare.coffee.s1301", "Xiaomi Scishare smart capsule coffee machine", THING_TYPE_BASIC),
PHILIPS_SR1("philips.light.sread1", "Xiaomi Philips Eyecare Smart Lamp 2", THING_TYPE_BASIC),
PHILIPS_SR2("philips.light.sread2", "Xiaomi Philips Eyecare Smart Lamp 2", THING_TYPE_BASIC),
PHILIPS_C("philips.light.ceiling", "Xiaomi Philips LED Ceiling Lamp", THING_TYPE_BASIC),

View File

@@ -0,0 +1,92 @@
{
"deviceMapping": {
"id": [
"scishare.coffee.s1102",
"scishare.coffee.s1301"
],
"channels": [
{
"property": "",
"friendlyName": "Power",
"channel": "power",
"channelType": "power",
"type": "Switch",
"refresh": false,
"actions": [
{
"command": "Machine_*",
"parameterType": "ONOFFPARA"
}
]
},
{
"property": "Query_Machine_Status",
"friendlyName": "status",
"channel": "Status",
"type": "String",
"customRefreshCommand": true,
"refresh": true,
"ChannelGroup": "actions",
"actions": []
},
{
"property": "",
"friendlyName": "Brew Expresso",
"channel": "expresso",
"type": "Number",
"refresh": true,
"actions": [
{
"command": "Espresso_Coffee_Set",
"parameterType": "NUMBER",
"parameters": [
"$value$",
85
]
}
],
"readmeComment": "Value is the amount of coffee in ml. 2nd parameter in the json db is the water temperature"
},
{
"property": "",
"friendlyName": "Brew Americano",
"channel": "expresso",
"type": "Number",
"refresh": true,
"actions": [
{
"command": "Americano_Coffee_Set",
"parameterType": "NUMBER",
"parameters": [
"$value$",
40,
80,
90
]
}
],
"readmeComment": "Value is the amount of coffee in ml. parameters in json are cupAmount: [set by OH], coffee: 40,water: 80, temp: 90"
},
{
"property": "",
"friendlyName": "Boil water",
"channel": "boil",
"type": "Number",
"refresh": true,
"actions": [
{
"command": "Hot_Wate",
"parameterType": "NUMBER",
"parameters": [
"$value$",
55
]
}
],
"readmeComment": "Value is the amount of water (ml) to heat. 2nd parameter in the json db is the water temperature"
}
],
"experimental": true,
"readmeComment": "This device does not allow for regular querying for the status. Hence the status is not updated for the action channels."
}
}