forked from openhab/openhab-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[miio] adding new devices (openhab#7273)
Adding several new devices. including: yeelink.light.color4 openhab#7016 Mi Home PTX Wall Switches (090615.switch.xswitch03) openhab#7000 Xiaomi Ceiling Lamp (yeelink.light.ceiling11) openhab#6787 Additional sensors and information in zhimi.airpurifier.v7 openhab#5760 fix formatting and channel correct Shutdowm typo Signed-off-by: Marcel Verpaalen <[email protected]> Signed-off-by: CSchlipp <[email protected]>
- Loading branch information
Showing
14 changed files
with
854 additions
and
185 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
bundles/org.openhab.binding.miio/src/main/resources/database/090615.switch.xswitch01.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"deviceMapping": { | ||
"id": [ | ||
"090615.switch.xswitch01" | ||
], | ||
"propertyMethod": "get_prop", | ||
"maxProperties": 1, | ||
"channels": [ | ||
{ | ||
"property": "switch1", | ||
"friendlyName": "Switch 1", | ||
"channel": "switch1state", | ||
"type": "Number", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "SetSwitch1", | ||
"parameterType": "NUMBER" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "switchname1", | ||
"friendlyName": "Switch Name 1", | ||
"channel": "switch1name", | ||
"type": "String", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "SetSwtichname1", | ||
"parameterType": "STRING" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
bundles/org.openhab.binding.miio/src/main/resources/database/090615.switch.xswitch02.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"deviceMapping": { | ||
"id": [ | ||
"090615.switch.xswitch02" | ||
], | ||
"propertyMethod": "get_prop", | ||
"maxProperties": 1, | ||
"channels": [ | ||
{ | ||
"property": "switch1", | ||
"friendlyName": "Switch 1", | ||
"channel": "switch1state", | ||
"type": "Number", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "SetSwitch1", | ||
"parameterType": "NUMBER" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "switch2", | ||
"friendlyName": "Switch 2", | ||
"channel": "switch2state", | ||
"type": "Number", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "SetSwitch2", | ||
"parameterType": "NUMBER" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "switchname1", | ||
"friendlyName": "Switch Name 1", | ||
"channel": "switch1name", | ||
"type": "String", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "SetSwtichname1", | ||
"parameterType": "STRING" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "switchname2", | ||
"friendlyName": "Switch Name 2", | ||
"channel": "switch2name", | ||
"type": "String", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "SetSwtichname2", | ||
"parameterType": "STRING" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
95 changes: 95 additions & 0 deletions
95
bundles/org.openhab.binding.miio/src/main/resources/database/090615.switch.xswitch03.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
{ | ||
"deviceMapping": { | ||
"id": [ | ||
"090615.switch.xswitch03" | ||
], | ||
"propertyMethod": "get_prop", | ||
"maxProperties": 1, | ||
"channels": [ | ||
{ | ||
"property": "switch1", | ||
"friendlyName": "Switch 1", | ||
"channel": "switch1state", | ||
"type": "Number", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "SetSwitch1", | ||
"parameterType": "NUMBER" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "switch2", | ||
"friendlyName": "Switch 2", | ||
"channel": "switch2state", | ||
"type": "Number", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "SetSwitch2", | ||
"parameterType": "NUMBER" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "switch3", | ||
"friendlyName": "Switch 3", | ||
"channel": "switch3state", | ||
"type": "Number", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "SetSwitch3", | ||
"parameterType": "NUMBER" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "switchname1", | ||
"friendlyName": "Switch Name 1", | ||
"channel": "switch1name", | ||
"type": "String", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "SetSwtichname1", | ||
"parameterType": "STRING" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "switchname2", | ||
"friendlyName": "Switch Name 2", | ||
"channel": "switch2name", | ||
"type": "String", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "SetSwtichname2", | ||
"parameterType": "STRING" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "switchname3", | ||
"friendlyName": "Switch Name 3", | ||
"channel": "switch3name", | ||
"type": "String", | ||
"refresh": true, | ||
"ChannelGroup": "actions", | ||
"actions": [ | ||
{ | ||
"command": "SetSwtichname3", | ||
"parameterType": "STRING" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
bundles/org.openhab.binding.miio/src/main/resources/database/chuangmi.plug.v3fw.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"deviceMapping": { | ||
"id": [ | ||
"chuangmi.plug.v3fw" | ||
], | ||
"channels": [ | ||
{ | ||
"property": "power", | ||
"friendlyName": "Power", | ||
"channel": "power", | ||
"type": "Switch", | ||
"refresh": true, | ||
"ChannelGroup": "", | ||
"actions": [ | ||
{ | ||
"command": "set_power", | ||
"parameterType": "ONOFF" | ||
} | ||
] | ||
}, | ||
{ | ||
"property": "usb_on", | ||
"friendlyName": "USB", | ||
"channel": "usb", | ||
"type": "Switch", | ||
"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": [ | ||
{ | ||
"command": "set_wifi_led", | ||
"parameterType": "ONOFF" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.