Skip to content

Commit

Permalink
[miio] powerplug & db fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Verpaalen <[email protected]>
  • Loading branch information
marcelrv committed May 29, 2018
1 parent 49b0a84 commit 860e7cd
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@
<item-type>Switch</item-type>
<label>Dry</label>
</channel-type>
<channel-type id="dept">
<channel-type id="depth">
<item-type>Number</item-type>
<label>Dept</label>
<label>Depth</label>
</channel-type>
</thing:thing-descriptions>
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"deviceMapping": {
"id": [
"chuangmi.plug.v1"
"chuangmi.plug.v1",
"chuangmi.plug.v2"
],
"channels": [
{
"property": "on",
"friendlyName": "Power",
"channel": "power",
"type": "Switch",
"type": "Switch",
"refresh": true,
"channelGroup": "actions",
"actions": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"deviceMapping": {
"id": [
"chuangmi.plug.v3"
],
"channels": [
{
"property": "on",
"friendlyName": "Power",
"channel": "power",
"type": "Switch",
"refresh": true,
"channelGroup": "actions",
"actions": [
{
"command": "set_*",
"parameterType": "ONOFFPARA"
}
]
},
{
"property": "usb_on",
"friendlyName": "USB",
"channel": "usb",
"type": "OnOffType",
"refresh": true,
"ChannelGroup": "actions",
"actions": [
{
"command": "set_usb_*",
"parameterType": "ONOFFPARA"
}
]
},
{
"property": "temperature",
"friendlyName": "Temperature",
"channel": "temperature",
"type": "Number",
"refresh": true,
"ChannelGroup": "",
"actions": []
},
{
"property": "wifi_led",
"friendlyName": "Wifi led",
"channel": "led",
"type": "Switch",
"refresh": true,
"ChannelGroup": "actions",
"actions": []
}
]
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@
]
},
{
"property": "dept",
"friendlyName": "Dept",
"channel": "dept",
"property": "depth",
"friendlyName": "Depth",
"channel": "depth",
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ public enum MiIoDevices {
PHILIPS_C2("philips.light.zyceiling", "Xiaomi Philips LED Ceiling Lamp", MiIoBindingConstants.THING_TYPE_BASIC),
PHILIPS_BULB("philips.light.bulb", "Xiaomi Philips Bulb", MiIoBindingConstants.THING_TYPE_BASIC),
POWERPLUG("chuangmi.plug.m1", "Mi Power-plug", MiIoBindingConstants.THING_TYPE_BASIC),
POWERPLUG1("chuangmi.plug.v1", "Mi Power-plug v1", MiIoBindingConstants.THING_TYPE_UNSUPPORTED),
POWERPLUG2("chuangmi.plug.v2", "Mi Power-plug v2", MiIoBindingConstants.THING_TYPE_UNSUPPORTED),
POWERPLUG1("chuangmi.plug.v1", "Mi Power-plug v1", MiIoBindingConstants.THING_TYPE_BASIC),
POWERPLUG2("chuangmi.plug.v2", "Mi Power-plug v2", MiIoBindingConstants.THING_TYPE_BASIC),
POWERPLUG3("chuangmi.plug.v3", "Mi Power-plug v3", MiIoBindingConstants.THING_TYPE_BASIC),
POWERSTRIP("qmi.powerstrip.v1", "Mi Power-strip v1", MiIoBindingConstants.THING_TYPE_BASIC),
POWERSTRIP2("zimi.powerstrip.v2", "Mi Power-strip v2", MiIoBindingConstants.THING_TYPE_BASIC),
TOOTHBRUSH("soocare.toothbrush.x3", "Mi Toothbrush", MiIoBindingConstants.THING_TYPE_UNSUPPORTED),
Expand Down

0 comments on commit 860e7cd

Please sign in to comment.