Skip to content

Commit

Permalink
IKEA light bulbs intervals adjusted (#8111)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattreim authored Feb 5, 2025
1 parent 55fff54 commit 003c714
Show file tree
Hide file tree
Showing 7 changed files with 333 additions and 70 deletions.
140 changes: 131 additions & 9 deletions devices/ikea/tradfri_bulb_e14_ws_opal_400lm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"vendor": "IKEA",
"product": "Tradfri LED bulb E14 400 lumen (LED1536G5)",
"sleeper": false,
"status": "Bronze",
"status": "Gold",
"subdevices": [
{
"type": "$TYPE_COLOR_TEMPERATURE_LIGHT",
Expand All @@ -17,34 +17,156 @@
],
"items": [
{
"name": "cap/color/capabilities"
"name": "attr/id"
},
{
"name": "cap/color/ct/max"
"name": "attr/lastannounced"
},
{
"name": "cap/color/ct/min"
"name": "attr/lastseen"
},
{
"name": "attr/manufacturername"
},
{
"name": "attr/modelid"
},
{
"name": "attr/name"
},
{
"name": "attr/swversion"
},
{
"name": "attr/type"
},
{
"name": "attr/uniqueid"
},
{
"name": "cap/bri/move_with_onoff",
"static": true
},
{
"name": "cap/color/capabilities",
"refresh.interval": 86400
},
{
"name": "cap/color/ct/max",
"static": 454
},
{
"name": "cap/color/ct/min",
"static": 250
},
{
"name": "cap/on/off_with_effect",
"static": true
},
{
"name": "state/alert",
"default": "none"
},
{
"name": "state/bri"
"name": "state/bri",
"refresh.interval": 360
},
{
"name": "state/colormode"
"name": "state/colormode",
"refresh.interval": 360
},
{
"name": "state/ct"
"name": "state/ct",
"refresh.interval": 360
},
{
"name": "state/on"
"name": "state/on",
"refresh.interval": 360
},
{
"name": "state/reachable"
}
]
}
],
"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,
"dst.ep": 1,
"cl": "0x0006",
"report": [
{
"at": "0x0000",
"dt": "0x10",
"min": 1,
"max": 300
}
]
},
{
"bind": "unicast",
"src.ep": 1,
"dst.ep": 1,
"cl": "0x0008",
"report": [
{
"at": "0x0000",
"dt": "0x20",
"min": 1,
"max": 300,
"change": "0x00000005"
}
]
},
{
"bind": "unicast",
"src.ep": 1,
"dst.ep": 1,
"cl": "0x0300",
"report": [
{
"at": "0x0007",
"dt": "0x21",
"min": 5,
"max": 1800,
"change": "0x00000001"
},
{
"at": "0x0003",
"dt": "0x21",
"min": 5,
"max": 1795,
"change": "0x0000000A"
},
{
"at": "0x0004",
"dt": "0x21",
"min": 5,
"max": 1795,
"change": "0x0000000A"
},
{
"at": "0x0008",
"dt": "0x30",
"min": 1,
"max": 1800
}
]
}
]
}
}
13 changes: 5 additions & 8 deletions devices/ikea/tradfri_bulb_e14_ww_clear_250lm.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,15 @@
},
{
"name": "state/alert",
"description": "The currently active alert effect.",
"default": "none"
},
{
"name": "state/bri",
"description": "The current brightness.",
"refresh.interval": 5
"refresh.interval": 360
},
{
"name": "state/on",
"description": "True when device is on; false when off.",
"refresh.interval": 5
"refresh.interval": 360
},
{
"name": "state/reachable"
Expand Down Expand Up @@ -89,7 +86,7 @@
"at": "0x0000",
"dt": "0x10",
"min": 1,
"max": 1800
"max": 300
}
]
},
Expand All @@ -102,8 +99,8 @@
{
"at": "0x0000",
"dt": "0x20",
"min": 5,
"max": 1800,
"min": 1,
"max": 300,
"change": "0x00000001"
}
]
Expand Down
67 changes: 44 additions & 23 deletions devices/ikea/tradfri_bulb_e27_ws_opal_980lm.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,24 +68,17 @@
},
{
"name": "cap/color/capabilities",
"read": {
"fn": "zcl:attr",
"ep": "0x01",
"cl": "0x0300",
"at": [
"0x400A",
"0x400B",
"0x400C",
"0x4010"
]
},
"refresh.interval": 86400
},
{
"name": "cap/color/ct/max"
"name": "cap/color/ct/max",
"refresh.interval": 86400,
"default": "0xfeff"
},
{
"name": "cap/color/ct/min"
"name": "cap/color/ct/min",
"refresh.interval": 86400,
"default": 0
},
{
"name": "cap/on/off_with_effect"
Expand Down Expand Up @@ -152,12 +145,6 @@
},
{
"name": "state/colormode",
"values": [
[
"\"ct\"",
"color temperature"
]
],
"static": "ct"
},
{
Expand All @@ -171,6 +158,20 @@
}
],
"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,
Expand All @@ -196,7 +197,7 @@
"dt": "0x20",
"min": 1,
"max": 300,
"change": "0x01"
"change": "0x00000001"
}
]
},
Expand All @@ -209,11 +210,31 @@
{
"at": "0x0007",
"dt": "0x21",
"min": 5,
"max": 1800,
"change": "0x00000001"
},
{
"at": "0x0003",
"dt": "0x21",
"min": 5,
"max": 1795,
"change": "0x0000000A"
},
{
"at": "0x0004",
"dt": "0x21",
"min": 5,
"max": 1795,
"change": "0x0000000A"
},
{
"at": "0x0008",
"dt": "0x30",
"min": 1,
"max": 300,
"change": "0x0001"
"max": 1800
}
]
}
]
}
}
Loading

0 comments on commit 003c714

Please sign in to comment.