ebaauw / homebridge-deconz

Homebridge plugin for deCONZ
Apache License 2.0
135 stars 7 forks source link

adaptive lighting: cannot compute Color Temperature #79

Closed LarryL-github closed 1 year ago

LarryL-github commented 1 year ago

Hi,

since plug-in version 0.0.26 I am getting huge amounts of warnings in homebridge log. Below a shorter example, sometimes I am getting even more warnings in a row

[6.11.2022, 08:46:31] [deCONZ] Nachttisch Michael: warning: adaptive lighting: cannot compute Color Temperature [6.11.2022, 08:46:31] [deCONZ] Deckenlampe SZ: warning: adaptive lighting: cannot compute Color Temperature [6.11.2022, 08:46:31] [deCONZ] Nachttisch Sandra: warning: adaptive lighting: cannot compute Color Temperature [6.11.2022, 08:46:42] [deCONZ] Nachttisch Michael: warning: adaptive lighting: cannot compute Color Temperature [6.11.2022, 08:46:42] [deCONZ] Nachttisch Sandra: warning: adaptive lighting: cannot compute Color Temperature [6.11.2022, 08:46:42] [deCONZ] Deckenlampe SZ: warning: adaptive lighting: cannot compute Color Temperature [6.11.2022, 08:47:12] [deCONZ] Nachttisch Michael: warning: adaptive lighting: cannot compute Color Temperature [6.11.2022, 08:47:12] [deCONZ] Nachttisch Sandra: warning: adaptive lighting: cannot compute Color Temperature [6.11.2022, 08:47:12] [deCONZ] Deckenlampe SZ: warning: adaptive lighting: cannot compute Color Temperature [6.11.2022, 08:47:42] [deCONZ] Nachttisch Michael: warning: adaptive lighting: cannot compute Color Temperature [6.11.2022, 08:47:42] [deCONZ] Nachttisch Sandra: warning: adaptive lighting: cannot compute Color Temperature [6.11.2022, 08:47:42] [deCONZ] Deckenlampe SZ: warning: adaptive lighting: cannot compute Color Temperature

I am using Phoscon 2.19.01 with Conbee II and Homebridge 1.5.1 All lights are IKEA bulbs Above bulbs are: TRADFRI bulb E14 WS opal 600lm TRADFRI bulb E27 WS opal 1000lm

I have enabled adaptive lighting in HomeKit, but this very often leads to very cold light in the evening

if more details are required, I would be happy to provide

regards Michael

ebaauw commented 1 year ago

Someone reported the same warnings on Discord. I'll repeat what I said over there:

Do the warnings continue if you turn off adaptive lighting and turn it back on? Was adaptive lighting enabled for the light, when Homebridge deCONZ last started?
Might be caused by different adaptive lighting logic wrt previous version, not sure, Better keep an eye on this. Could also be when restarting Homebridge while adaptive lighting is active. Homebridge deCONZ should pick up on that, and re-initialise adaptive lighting, but that logic is a bit iffy.

I have enabled adaptive lighting in HomeKit, but this very often leads to very cold light in the evening

Apple sets the lights too cool for my taste. To cope with that, Homebridge Hue supports a correction factor, but I haven't yet implemented that in Homebridge deCONZ.

LarryL-github commented 1 year ago

Yeah, lots of struggling with adaptive lighting. For me it does not work at all - very cold temperature in the evening, not warm as it should be. So I have turned it off wherever possible - but sometimes, on some bulbs it seems turning on again automatically. Haven't figured out why and how, yet. So now I have turned adaptive lighting off everywhere and restarted homebridge - no warnings so far. Will keep you posted...

LarryL-github commented 1 year ago

All of a sudden, I am getting this now:

[6.11.2022, 18:52:43] [deCONZ] Phoscon-GW: warning: request 1263: api error 901: Internal error, 951 [6.11.2022, 18:52:43] [deCONZ] Phoscon-GW: warning: request 1263: api error 901: Internal error, 951 - retry in 300ms [6.11.2022, 18:52:43] [deCONZ] Phoscon-GW: warning: request 1264: api error 901: Internal error, 951 [6.11.2022, 18:52:43] [deCONZ] Phoscon-GW: warning: request 1264: api error 901: Internal error, 951 - retry in 300ms [6.11.2022, 18:52:43] [deCONZ] Phoscon-GW: warning: request

I left out all the request numbers between 1264 and 1300

1300: api error 901: Internal error, 951 [6.11.2022, 18:52:44] [deCONZ] Phoscon-GW: warning: request 1301: api error 901: Internal error, 951 [6.11.2022, 18:52:45] [deCONZ] Phoscon-GW: warning: request 1302: api error 901: Internal error, 951

Not sure if this is related to the same issue, but I wanted to let you know

ebaauw commented 1 year ago

No, that's deCONZ' way of telling it's unable to queue the ZIgbee commands. Check the deCONZ log for details, but I'm betting it's the deCONZ v2.19 issues with queues filling up.