ebaauw / homebridge-hue

Homebridge plugin for Philips Hue
Apache License 2.0
894 stars 91 forks source link

Homebridge flooded with logs? #1171

Closed M0untainD3w closed 8 months ago

M0untainD3w commented 8 months ago

I just bought two new powerplugs and connected it to Deconz. All working fine but I do see that my homebridge gets a status message every 5 seconds. The power consumption I get but the on/off state is not correct. The plug is just operational. I only get these message when the plug is turned on.

Do I need to worry? And won't this slow down Homebridge at some time? And can I turn this off?? Debugging is OFF btw.

Log Messages

[24/10/2023, 20:41:04] [Hue] Power 26: set homekit outlet in use from 0 to 1
[24/10/2023, 20:41:21] [Hue] Power 26: set homekit current consumption from 3 W to 0 W
[24/10/2023, 20:41:21] [Hue] Power 26: set homekit outlet in use from 1 to 0
[24/10/2023, 20:41:27] [Hue] Power 26: set homekit current consumption from 0 W to 3 W
[24/10/2023, 20:41:27] [Hue] Power 26: set homekit outlet in use from 0 to 1
[24/10/2023, 20:41:35] [Hue] Power 26: set homekit current consumption from 3 W to 0 W
[24/10/2023, 20:41:35] [Hue] Power 26: set homekit outlet in use from 1 to 0
[24/10/2023, 20:41:40] [Hue] Power 26: set homekit current consumption from 0 W to 3 W
[24/10/2023, 20:41:40] [Hue] Power 26: set homekit outlet in use from 0 to 1

Debug Files

ebaauw commented 8 months ago

I don't see the on/off state reported?

Homebridge Hue just reacts to changes reported by deCONZ. deCONZ probably just forwards the values reported by the plug. Looks like the plug doesn't report a constant power (Current Consumption) but flips between 0W and 3W. You might change the plug's attribute reporting setting in the deCONZ GUI, to issue change reports only on larger deltas, or to send only periodic reports. Not sure if deCONZ will try and overwrite these, though. Outlet In Use is just derived from power being > 0.

There's no way to turn logging off in Homebridge Hue. In Homebridge deCONZ, you can change the level of logging per accessory, dynamically (i.e. during runtime).

M0untainD3w commented 8 months ago

Ooh, I mistakenly thought this was on/off: [24/10/2023, 20:41:35] [Hue] Power 26: set homekit outlet in use from 1 to 0

Maybe a stupid question, I am still a beginner in all of this. I know how to get to the deCONZ GUI but how do I change what you are suggesting?

M0untainD3w commented 8 months ago

No suggestions?

I have no idea what to do :-(

ebaauw commented 8 months ago

See the user manual of the GUI (under help) on how to change attribute reporting. For further help on deCONZ, ask in their forum or on their Discord.

It might be easier to migrate to Homebridge deCONZ, or at least expose the plugs through Homebridge deCONZ.