diff --git a/config/rzl.js b/config/rzl.js index 7f9e124..3cec3f3 100644 --- a/config/rzl.js +++ b/config/rzl.js @@ -703,7 +703,7 @@ const config : Config = { position: [400, 348], icon: "remote", iconColor: (state) => - (state[tradfri_remote.low("65536")] || state[tradfri_remote.low("65542")]) ? hex("#ff0000") : hex("#000000"), + ((state[tradfri_remote.low("65536")] == "true") || (state[tradfri_remote.low("65542")] == "true")) ? hex("#ff0000") : hex("#000000"), ui: [ { type: "progress", diff --git a/config/utils.js b/config/utils.js index c19ddb0..a4cce98 100644 --- a/config/utils.js +++ b/config/utils.js @@ -73,7 +73,7 @@ export const tradfri_remote = { state: `/service/openhab/out/tradfri_0830_gwb8d7af2b448f_${remote_id}_battery_low/state`, command: ``, defaultValue: "OFF", - values: { [true]: "ON", [false]: "OFF" } + values: { true: "ON", false: "OFF" } } }) }