Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[miio] Update many channels with tags, categories & QuantityTypes #9384

Merged
merged 8 commits into from
Dec 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions bundles/org.openhab.binding.miio/README.base.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,6 @@ or in case of unknown models include the model information of a similar device t

`Thing miio:vacuum:s50 "vacuum" @ "livingroom" [ host="192.168.15.20", token="xxxxxxx", deviceId=“0470DDAA”, model="roborock.vacuum.s4", communication="cloud"]`

# Mi IO Devices

!!!devices

# Advanced: Unsupported devices

Newer devices may not yet be supported.
Expand Down Expand Up @@ -118,7 +114,7 @@ After validation, please share the logfile and json files on the openHAB forum o

Things using the basic handler (miio:basic things) are driven by json 'database' files.
This instructs the binding which channels to create, which properties and actions are associated with the channels etc.
The conf/misc/miio (e.g. in Linux `/opt/openhab2/conf/misc/miio/`) is scanned for database files and will be used for your devices.
The conf/misc/miio (e.g. in Linux `/opt/openhab/conf/misc/miio/`) is scanned for database files and will be used for your devices.
During the start of the binding the exact path used in your system will be printed in the debug log.
Watch for a line containing `Started miio basic devices local databases watch service. Watching for database files at path: …`
If this folder is created after the start of the binding, you may need to restart the binding (or openHAB) to be able to use the local files.
Expand Down Expand Up @@ -168,6 +164,9 @@ This won't work, the Roborock app is using a different communication method.
Reset your vacuum and connect it to the Xiaomi MiHome app.
This will change the communication method and the Mi IO binding can communicate with the vacuum.

# Mi IO Devices

!!!devices

# Channels

Expand Down
503 changes: 251 additions & 252 deletions bundles/org.openhab.binding.miio/README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
"actions": [],
"tags": [
"Measurement"
]
},
{
"property": "tvoc",
Expand All @@ -44,23 +47,30 @@
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
"actions": [],
"tags": [
"Measurement"
]
},
{
"property": "humidity",
"friendlyName": "Humidity",
"channel": "humidity",
"channelType": "humidity",
"type": "Number",
"type": "Number:Dimensionless",
"unit": "PERCENT",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
"actions": [],
"category": "humidity",
"tags": [
"Measurement",
"Humidity"
]
},
{
"property": "temperature",
"friendlyName": "Temperature",
"channel": "temperature",
"channelType": "temperatureC",
"type": "Number:Temperature",
"unit": "CELCIUS",
"refresh": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
"actions": [],
"category": "co2",
"tags": [
"Measurement",
"CO2"
]
},
{
"property": "tvoc",
Expand All @@ -44,17 +49,25 @@
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
"actions": [],
"tags": [
"Measurement"
]
},
{
"property": "humidity",
"friendlyName": "Humidity",
"channel": "humidity",
"channelType": "humidity",
"type": "Number",
"type": "Number:Dimensionless",
"unit": "PERCENT",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
"actions": [],
"category": "humidity",
"tags": [
"Measurement",
"Humidity"
]
},
{
"property": "temperature",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@
"channelType": "power",
"type": "Switch",
"refresh": true,
"ChannelGroup": "",
"actions": [
{
"command": "set_power",
"parameterType": "ONOFF"
}
],
"category": "switch",
"tags": [
"Switch"
]
},
{
Expand All @@ -29,7 +32,6 @@
"type": "Number:Temperature",
"unit": "CELCIUS",
"refresh": true,
"ChannelGroup": "",
"actions": [],
"category": "temperature",
"tags": [
Expand All @@ -44,7 +46,6 @@
"channelType": "led",
"type": "Switch",
"refresh": true,
"ChannelGroup": "",
"actions": [
{
"command": "set_wifi_led",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"command": "set_*",
"parameterType": "ONOFFPARA"
}
],
"category": "switch",
"tags": [
"Switch"
]
},
{
Expand All @@ -37,11 +41,9 @@
"property": "temperature",
"friendlyName": "Temperature",
"channel": "temperature",
"channelType": "temperatureC",
"type": "Number:Temperature",
"unit": "CELCIUS",
"refresh": true,
"ChannelGroup": "",
"actions": [],
"category": "temperature",
"tags": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@
"channelType": "power",
"type": "Switch",
"refresh": true,
"ChannelGroup": "",
"actions": [
{
"command": "set_power",
"parameterType": "ONOFF"
}
],
"category": "switch",
"tags": [
"Switch"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"command": "set_*",
"parameterType": "ONOFFPARA"
}
],
"category": "switch",
"tags": [
"Switch"
]
},
{
Expand All @@ -41,7 +45,6 @@
"type": "Number:Temperature",
"unit": "CELCIUS",
"refresh": true,
"ChannelGroup": "",
"actions": [],
"category": "temperature",
"tags": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@
"channelType": "power",
"type": "Switch",
"refresh": true,
"ChannelGroup": "",
"actions": [
{
"command": "set_power",
"parameterType": "ONOFF"
}
],
"category": "switch",
"tags": [
"Switch"
],
"readmeComment": "If this channel does not respond to on/off replace the model with chuangmi.plug.v3old in the config or upgrade firmware"
},
{
Expand All @@ -46,7 +49,6 @@
"type": "Number:Temperature",
"unit": "CELCIUS",
"refresh": true,
"ChannelGroup": "",
"actions": [],
"category": "temperature",
"tags": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
"command": "set_properties",
"parameterType": "ONOFFBOOL"
}
],
"category": "switch",
"tags": [
"Switch"
]
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"command": "set_power",
"parameterType": "ONOFFBOOL"
}
],
"category": "switch",
"tags": [
"Switch"
]
},
{
Expand All @@ -30,6 +34,9 @@
"command": "set_mode",
"parameterType": "STRING"
}
],
"tags": [
"Control"
]
},
{
Expand Down Expand Up @@ -116,7 +123,12 @@
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
"actions": [],
"category": "co2",
"tags": [
"Measurement",
"CO2"
]
},
{
"property": "control_speed",
Expand Down Expand Up @@ -159,7 +171,6 @@
"channelType": "airFreshFilterPercents",
"type": "Number",
"refresh": true,
"ChannelGroup": "",
"actions": []
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"command": "set_power",
"parameterType": "ONOFFBOOL"
}
],
"category": "switch",
"tags": [
"Switch"
]
},
{
Expand All @@ -30,6 +34,9 @@
"command": "set_mode",
"parameterType": "STRING"
}
],
"tags": [
"Control"
]
},
{
Expand Down Expand Up @@ -144,7 +151,12 @@
"type": "Number",
"refresh": true,
"ChannelGroup": "Status",
"actions": []
"actions": [],
"category": "co2",
"tags": [
"Measurement",
"CO2"
]
},
{
"property": "control_speed",
Expand Down Expand Up @@ -187,7 +199,6 @@
"channelType": "airFreshFilterPercents",
"type": "Number",
"refresh": true,
"ChannelGroup": "",
"actions": []
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"command": "s_power",
"parameterType": "ONOFF"
}
],
"category": "switch",
"tags": [
"Switch"
]
},
{
Expand Down Expand Up @@ -44,6 +48,9 @@
"command": "s_mode",
"parameterType": "STRING"
}
],
"tags": [
"Control"
]
},
{
Expand Down
Loading