Skip to content

Commit

Permalink
[miio] fix channels with invalid names (openhab#9888)
Browse files Browse the repository at this point in the history
* [miio] fix channels with invalid names
* [miio] allow for readbale friendly names

Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>
Signed-off-by: John Marshall <john.marshall.au@gmail.com>
  • Loading branch information
marcelrv authored and themillhousegroup committed May 10, 2021
1 parent bad99a1 commit 6c0042c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@
"friendlyName": "Light Mode",
"channel": "lightMode",
"type": "Number",
"refresh": true,
"stateDescription": {
"options": [
{
Expand All @@ -247,6 +246,7 @@
}
]
},
"refresh": true,
"actions": [
{
"command": "set_lightMode",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@
"friendlyName": "Light Mode",
"channel": "lightMode",
"type": "Number",
"refresh": true,
"stateDescription": {
"options": [
{
Expand All @@ -211,6 +210,7 @@
}
]
},
"refresh": true,
"actions": [
{
"command": "set_lightMode",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@
"property": "pm2.5-density",
"siid": 3,
"piid": 6,
"friendlyName": "Environment - Pm2 5 Density",
"channel": "pm2.5-density",
"friendlyName": "Environment - Pm2.5 Density",
"channel": "pm2_5-density",
"type": "Number",
"stateDescription": {
"minimum": 0.0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@
"property": "pm2.5-density",
"siid": 3,
"piid": 6,
"friendlyName": "Environment - Pm2 5",
"channel": "pm2.5-density",
"friendlyName": "Environment - Pm2.5 density",
"channel": "pm2_5-density",
"type": "Number",
"stateDescription": {
"minimum": 0.0,
Expand Down

0 comments on commit 6c0042c

Please sign in to comment.