+2 neue Fernbedinungen

This commit is contained in:
Ranlvor 2018-04-29 18:24:23 +02:00
parent 3a34f34558
commit 1f248a5e9a
Signed by untrusted user who does not match committer: Ranlvor
GPG key ID: 5E12D04750EF6F8E

View file

@ -183,11 +183,13 @@ const config : Config = {
floalt.topics("65539"), floalt.topics("65539"),
floalt.topics("65540"), floalt.topics("65540"),
tradfri_remote.topics("65536"), tradfri_remote.topics("65536"),
tradfri_remote.topics("65547"),
//Theken-Floalts //Theken-Floalts
floalt.topics("65543"), floalt.topics("65543"),
floalt.topics("65544"), floalt.topics("65544"),
tradfri_remote.topics("65542"), tradfri_remote.topics("65542"),
tradfri_remote.topics("65546"),
esper_topics("afba40", "flyfry"), esper_topics("afba40", "flyfry"),
esper_topics("afba45", "alarm") esper_topics("afba45", "alarm")
@ -703,7 +705,7 @@ const config : Config = {
position: [400, 348], position: [400, 348],
icon: "remote", icon: "remote",
iconColor: (state) => iconColor: (state) =>
((state[tradfri_remote.low("65536")] == "true") || (state[tradfri_remote.low("65542")] == "true")) ? hex("#ff0000") : hex("#000000"), ((state[tradfri_remote.low("65536")] == "true") || (state[tradfri_remote.low("65542")] == "true") || (state[tradfri_remote.low("65546")] == "true") || (state[tradfri_remote.low("65547")] == "true")) ? hex("#ff0000") : hex("#000000"),
ui: [ ui: [
{ {
type: "progress", type: "progress",
@ -713,6 +715,14 @@ const config : Config = {
text: "Tisch", text: "Tisch",
topic: tradfri_remote.level("65536") topic: tradfri_remote.level("65536")
}, },
{
type: "progress",
icon: "battery",
min: 0,
max: 100,
text: "Tisch 2",
topic: tradfri_remote.level("65547")
},
{ {
type: "progress", type: "progress",
icon: "battery", icon: "battery",
@ -720,6 +730,14 @@ const config : Config = {
max: 100, max: 100,
text: "Theke", text: "Theke",
topic: tradfri_remote.level("65542") topic: tradfri_remote.level("65542")
},
{
type: "progress",
icon: "battery",
min: 0,
max: 100,
text: "Theke 2",
topic: tradfri_remote.level("65546")
} }
] ]
}, },