diff --git a/bundles/org.openhab.binding.miio/README.md b/bundles/org.openhab.binding.miio/README.md index ed40baa27..9b5bd37b5 100644 --- a/bundles/org.openhab.binding.miio/README.md +++ b/bundles/org.openhab.binding.miio/README.md @@ -152,6 +152,8 @@ or in case of unknown models include the model information of a similar device t | Mr Bond M1 Pro Smart Clothes Dryer | miio:basic | [mrbond.airer.m1pro](#mrbond-airer-m1pro) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | | Mr Bond M1 Smart Clothes Dryer | miio:basic | [mrbond.airer.m1s](#mrbond-airer-m1s) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | | Mr Bond M1 Super Smart Clothes Dryer | miio:basic | [mrbond.airer.m1super](#mrbond-airer-m1super) | Yes | Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | +| Xiaomi Scishare smart capsule coffee machine | miio:basic | [scishare.coffee.s1102](#scishare-coffee-s1102) | Yes | This device does not allow for regular querying for the status. Hence the status is not updated for the action channels. Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | +| Xiaomi Scishare smart capsule coffee machine | miio:basic | [scishare.coffee.s1301](#scishare-coffee-s1301) | Yes | This device does not allow for regular querying for the status. Hence the status is not updated for the action channels. Experimental support. Please report back if all channels are functional. Preferably share the debug log of property refresh and command responses | | Xiaomi Philips Eyecare Smart Lamp 2 | miio:basic | [philips.light.sread1](#philips-light-sread1) | Yes | | | Xiaomi Philips Eyecare Smart Lamp 2 | miio:basic | [philips.light.sread2](#philips-light-sread2) | Yes | | | Xiaomi Philips LED Ceiling Lamp | miio:basic | [philips.light.ceiling](#philips-light-ceiling) | Yes | | @@ -1313,6 +1315,26 @@ e.g. `smarthome:send actionCommand 'upd_timer["1498595904821", "on"]'` would ena | disinfect | Switch | disinfect | | | distime | Number | Disinfect Time | | +### Xiaomi Scishare smart capsule coffee machine (scishare.coffee.s1102) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| Status | String | status | | +| expresso | Number | Brew Expresso | Value is the amount of coffee in ml. 2nd parameter in the json db is the water temperature | +| expresso | Number | Brew Americano | Value is the amount of coffee in ml. parameters in json are cupAmount: [set by OH], coffee: 40,water: 80, temp: 90 | +| boil | Number | Boil water | Value is the amount of water (ml) to heat. 2nd parameter in the json db is the water temperature | + +### Xiaomi Scishare smart capsule coffee machine (scishare.coffee.s1301) Channels + +| Channel | Type | Description | Comment | +|------------------|---------|-------------------------------------|------------| +| power | Switch | Power | | +| Status | String | status | | +| expresso | Number | Brew Expresso | Value is the amount of coffee in ml. 2nd parameter in the json db is the water temperature | +| expresso | Number | Brew Americano | Value is the amount of coffee in ml. parameters in json are cupAmount: [set by OH], coffee: 40,water: 80, temp: 90 | +| boil | Number | Boil water | Value is the amount of water (ml) to heat. 2nd parameter in the json db is the water temperature | + ### Xiaomi Philips Eyecare Smart Lamp 2 (philips.light.sread1) Channels | Channel | Type | Description | Comment | @@ -4248,6 +4270,32 @@ Switch disinfect "disinfect" (G_airer) {channel="miio:basic:airer:disinfect"} Number distime "Disinfect Time" (G_airer) {channel="miio:basic:airer:distime"} ``` +### Xiaomi Scishare smart capsule coffee machine (scishare.coffee.s1102) item file lines + +note: Autogenerated example. Replace the id (coffee) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered. + +```java +Group G_coffee "Xiaomi Scishare smart capsule coffee machine" +Switch power "Power" (G_coffee) {channel="miio:basic:coffee:power"} +String Status "status" (G_coffee) {channel="miio:basic:coffee:Status"} +Number expresso "Brew Expresso" (G_coffee) {channel="miio:basic:coffee:expresso"} +Number expresso "Brew Americano" (G_coffee) {channel="miio:basic:coffee:expresso"} +Number boil "Boil water" (G_coffee) {channel="miio:basic:coffee:boil"} +``` + +### Xiaomi Scishare smart capsule coffee machine (scishare.coffee.s1301) item file lines + +note: Autogenerated example. Replace the id (coffee) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered. + +```java +Group G_coffee "Xiaomi Scishare smart capsule coffee machine" +Switch power "Power" (G_coffee) {channel="miio:basic:coffee:power"} +String Status "status" (G_coffee) {channel="miio:basic:coffee:Status"} +Number expresso "Brew Expresso" (G_coffee) {channel="miio:basic:coffee:expresso"} +Number expresso "Brew Americano" (G_coffee) {channel="miio:basic:coffee:expresso"} +Number boil "Boil water" (G_coffee) {channel="miio:basic:coffee:boil"} +``` + ### Xiaomi Philips Eyecare Smart Lamp 2 (philips.light.sread1) item file lines note: Autogenerated example. Replace the id (light) in the channel with your own. Replace `basic` with `generic` in the thing UID depending on how your thing was discovered. diff --git a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoDevices.java b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoDevices.java index 6abdbbfa8..bbf599872 100644 --- a/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoDevices.java +++ b/bundles/org.openhab.binding.miio/src/main/java/org/openhab/binding/miio/internal/MiIoDevices.java @@ -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), diff --git a/bundles/org.openhab.binding.miio/src/main/resources/database/scishare.coffee.s1102.json b/bundles/org.openhab.binding.miio/src/main/resources/database/scishare.coffee.s1102.json new file mode 100644 index 000000000..10e6b704b --- /dev/null +++ b/bundles/org.openhab.binding.miio/src/main/resources/database/scishare.coffee.s1102.json @@ -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." + } +}