Merge pull request #39 from Ranlvor/patch-14

Show number of WLAN-devices
This commit is contained in:
uwap 2018-06-24 17:30:07 +02:00 committed by GitHub
commit 07ec53d312
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,6 +130,13 @@ const config : Config = {
values: {},
type: msg => JSON.parse(msg.toString()).join(", ")
},
devices_status: {
state: "/service/status/devices",
command: "",
defaultValue: "",
values: {},
type: types.string
},
infoscreen: {
state: "/service/openhab/out/pca301_infoscreen/state",
command: "/service/openhab/in/pca301_infoscreen/command",
@ -495,7 +502,14 @@ const config : Config = {
text: "Anwesend",
topic: "presence_status",
icon: mdi("account")
},
{
type: "text",
text: "Devices",
topic: "devices_status",
icon: mdi("wifi")
}
]
},
infoscreen: {