Changes from pull request discussion
- simplyfy empty tradfri battery detection - change command string format
This commit is contained in:
parent
86f03ad3ef
commit
d93362edcb
2 changed files with 5 additions and 4 deletions
|
|
@ -736,8 +736,9 @@ const config : Config = {
|
|||
name: "Fernbedinungen",
|
||||
position: [400, 348],
|
||||
icon: "remote",
|
||||
iconColor: (state) =>
|
||||
((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"),
|
||||
iconColor: (state) => //if any remote is low make icon red
|
||||
["65536", "65542", "65546", "65547"
|
||||
].some(x => state[tradfri_remote.low(x)] == "true") ? hex("#ff0000") : hex("#000000"),
|
||||
ui: [
|
||||
{
|
||||
type: "progress",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue