24.07.2025, 09:14
(24.07.2025, 08:39)admin Wrote: To log a particular lamp modify the script around line 18:
Code:while true do
reply = getHueLights()
mylamps = json.decode(reply)
for _, item in pairs(mylamps) do
if item.name == 'Cove lighting-cr' then
log(item)
end
The result is:
Code:
Feedback 24.07.2025 12:08:48
* table:
["swversion"]
* string: 1.122.8
["swconfigid"]
* string: 49730BB6
["uniqueid"]
* string: 00:17:88:01:0b:f3:14:ae-0b
["capabilities"]
* table:
["control"]
* table:
["colorgamut"]
* table:
[1]
* table:
[1]
* number: 0.6915
[2]
* number: 0.3083
[2]
* table:
[1]
* number: 0.17
[2]
* number: 0.7
[3]
* table:
[1]
* number: 0.1532
[2]
* number: 0.0475
["ct"]
* table:
["min"]
* number: 153
["max"]
* number: 500
["colorgamuttype"]
* string: C
["maxlumen"]
* number: 1600
["mindimlevel"]
* number: 40
["streaming"]
* table:
["renderer"]
* bool: true
["proxy"]
* bool: true
["certified"]
* bool: true
["swupdate"]
* table:
["state"]
* string: noupdates
["lastinstall"]
* string: 2025-07-17T11:36:44
["productid"]
* string: Philips-LCL001-1-LedStripsv4
["manufacturername"]
* string: Signify Netherlands B.V.
["productname"]
* string: Hue lightstrip plus
["modelid"]
* string: LCL001
["state"]
* table:
["ct"]
* number: 285
["reachable"]
* bool: true
["alert"]
* string: select
["on"]
* bool: false
["bri"]
* number: 58
["mode"]
* string: homeautomation
["colormode"]
* string: xy
["hue"]
* number: 24225
["sat"]
* number: 18
["effect"]
* string: none
["xy"]
* table:
[1]
* number: 0.3675
[2]
* number: 0.3982
["type"]
* string: Extended color light
["name"]
* string: Cove lighting-cr
["config"]
* table:
["startup"]
* table:
["mode"]
* string: powerfail
["configured"]
* bool: true
["function"]
* string: decorative
["archetype"]
* string: huelightstrip
["direction"]
* string: omnidirectional