[miio] fix channels with invalid names (#9888)

* [miio] fix channels with invalid names
* [miio] allow for readbale friendly names

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
This commit is contained in:
Marcel 2021-01-22 03:00:25 +01:00 committed by GitHub
parent de126f6a71
commit 23fd13c9da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -234,7 +234,6 @@
"friendlyName": "Light Mode", "friendlyName": "Light Mode",
"channel": "lightMode", "channel": "lightMode",
"type": "Number", "type": "Number",
"refresh": true,
"stateDescription": { "stateDescription": {
"options": [ "options": [
{ {
@ -247,6 +246,7 @@
} }
] ]
}, },
"refresh": true,
"actions": [ "actions": [
{ {
"command": "set_lightMode", "command": "set_lightMode",

View File

@ -198,7 +198,6 @@
"friendlyName": "Light Mode", "friendlyName": "Light Mode",
"channel": "lightMode", "channel": "lightMode",
"type": "Number", "type": "Number",
"refresh": true,
"stateDescription": { "stateDescription": {
"options": [ "options": [
{ {
@ -211,6 +210,7 @@
} }
] ]
}, },
"refresh": true,
"actions": [ "actions": [
{ {
"command": "set_lightMode", "command": "set_lightMode",

View File

@ -140,8 +140,8 @@
"property": "pm2.5-density", "property": "pm2.5-density",
"siid": 3, "siid": 3,
"piid": 6, "piid": 6,
"friendlyName": "Environment - Pm2 5 Density", "friendlyName": "Environment - Pm2.5 Density",
"channel": "pm2.5-density", "channel": "pm2_5-density",
"type": "Number", "type": "Number",
"stateDescription": { "stateDescription": {
"minimum": 0.0, "minimum": 0.0,

View File

@ -140,8 +140,8 @@
"property": "pm2.5-density", "property": "pm2.5-density",
"siid": 3, "siid": 3,
"piid": 6, "piid": 6,
"friendlyName": "Environment - Pm2 5", "friendlyName": "Environment - Pm2.5 density",
"channel": "pm2.5-density", "channel": "pm2_5-density",
"type": "Number", "type": "Number",
"stateDescription": { "stateDescription": {
"minimum": 0.0, "minimum": 0.0,