From 862af1a3cfcd35888493481c4b7beb33fad77586 Mon Sep 17 00:00:00 2001 From: ebaauw Date: Sat, 9 Sep 2023 11:20:03 +0200 Subject: [PATCH] Update tradfri_bulb_e27_ws_opal_980lm.json --- .../ikea/tradfri_bulb_e27_ws_opal_980lm.json | 92 +++++++++++-------- 1 file changed, 56 insertions(+), 36 deletions(-) diff --git a/devices/ikea/tradfri_bulb_e27_ws_opal_980lm.json b/devices/ikea/tradfri_bulb_e27_ws_opal_980lm.json index f6da95c92f..95ee9c4b89 100644 --- a/devices/ikea/tradfri_bulb_e27_ws_opal_980lm.json +++ b/devices/ikea/tradfri_bulb_e27_ws_opal_980lm.json @@ -1,15 +1,7 @@ { "schema": "devcap1.schema.json", - "manufacturername": [ - "$MF_IKEA", - "$MF_IKEA", - "$MF_IKEA" - ], - "modelid": [ - "TRADFRI bulb E27 WS opal 980lm", - "TRADFRI bulb E27 WS�opal 980lm", - "0x545241444652492062756c6220453237205753a06f70616c203938306c6d" - ], + "manufacturername": "$MF_IKEA", + "modelid": "TRADFRI bulb E27 WS opal 980lm", "product": "TRADFRI bulb E27 WS opal 980lm", "sleeper": false, "status": "Gold", @@ -35,8 +27,7 @@ "name": "attr/manufacturername" }, { - "name": "attr/modelid", - "static": "TRADFRI bulb E27 WS opal 980lm" + "name": "attr/modelid" }, { "name": "attr/name" @@ -57,7 +48,19 @@ "name": "cap/bri/move_with_onoff" }, { - "name": "cap/color/capabilities" + "name": "cap/color/capabilities", + "read": { + "fn": "zcl", + "ep": "0x01", + "cl": "0x0300", + "at": [ + "0x400a", + "0x400b", + "0x400c", + "0x4010" + ] + }, + "refresh.interval": 86400 }, { "name": "cap/color/ct/max" @@ -72,16 +75,37 @@ "name": "cap/transition_block" }, { - "name": "config/bri/execute_if_off" + "name": "config/bri/execute_if_off", + "read": { + "fn": "zcl", + "ep": "0x01", + "cl": "0x0008", + "at": [ + "0x000f", + "0x0010", + "0x0011", + "0x4000" + ] + }, + "refresh.interval": 3600 }, { - "name": "config/bri/on_level" + "name": "config/bri/on_level", + "read": { + "fn": "none" + } }, { - "name": "config/bri/onoff_transitiontime" + "name": "config/bri/onoff_transitiontime", + "read": { + "fn": "none" + } }, { - "name": "config/bri/startup" + "name": "config/bri/startup", + "read": { + "fn": "none" + } }, { "name": "config/color/execute_if_off" @@ -94,15 +118,25 @@ "default": "none" }, { - "name": "state/bri", + "name": "state/on", "refresh.interval": 305 }, { - "name": "state/ct", + "name": "state/bri", "refresh.interval": 305 }, { - "name": "state/on", + "name": "state/colormode", + "values": [ + [ + "\"ct\"", + "color temperature" + ] + ], + "static": "ct" + }, + { + "name": "state/ct", "refresh.interval": 305 }, { @@ -112,20 +146,6 @@ } ], "bindings": [ - { - "bind": "unicast", - "src.ep": 1, - "dst.ep": 1, - "cl": "0x0000", - "report": [ - { - "at": "0x4000", - "dt": "0x42", - "min": 0, - "max": 65535 - } - ] - }, { "bind": "unicast", "src.ep": 1, @@ -151,7 +171,7 @@ "dt": "0x20", "min": 1, "max": 300, - "change": "0x00000001" + "change": "0x01" } ] }, @@ -166,7 +186,7 @@ "dt": "0x21", "min": 1, "max": 300, - "change": "0x00000001" + "change": "0x0001" } ] }