bramstroker / homeassistant-powercalc

Custom component to calculate estimated power consumption of lights and other appliances
MIT License
1.01k stars 261 forks source link

Ikea LED2005R5 Goes unavailiable when turned on #1847

Closed blackteddybear closed 1 year ago

blackteddybear commented 1 year ago

System Health details

x

Checklist

Describe the issue

The above Ikea bulb is auto detected by discovery. After going throught the wizard the bulbs power and energy show unavailible when power on, when the bulb is turn off from home assistand ther power show 0.2w and the energy still shows unavaliable

what information is needed to diagnose this problem, thanks

2023-09-01 (5) 2023-09-01 (7)

Reproduction steps

1. 2. 3. ...

Debug logs

x

Diagnostics dump or YAML config

x

bramstroker commented 1 year ago

You'll need to check the logs for errors.

blackteddybear commented 1 year ago

will check this evening

bramstroker commented 1 year ago

@blackteddybear were you able to check already?

Oldchatterhand43 commented 1 year ago

I got the same problem with the ikea LED1536G5 - can't find any errors in the logs. But maybe it's because i'm a noob. So explain me, where i can find the right logs... sorry.

blackteddybear commented 1 year ago

@blackteddybear were you able to check already?

Sorry haven’t yet, I’ll have a look today.

where specifically should I be looking

dieewossmarthome commented 1 year ago

I also have the problem that Ikea lamps are not available after switching them on, but only if they are integrated via Philips Hue. Bildschirmfoto 2023-09-20 um 08 42 21 Bildschirmfoto 2023-09-20 um 08 43 54

bramstroker commented 1 year ago

Please have a look into error logs, there should be some errors logs

Settings -> System -> Logs.

Or when you have access to file system (using filesystem editor addon) or SSH access logs are also at config/homeassistant.log

Might also help to enable debug logging for powercalc which might provide further insights. You can enable that on powercalc integration page.

Oldchatterhand43 commented 1 year ago

Okay thanks. There I found this entry:


Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: custom_components.powercalc.strategy.lut Source: custom_components/powercalc/strategy/lut.py:137 Integration: Powercalc (documentation, issues) First occurred: 18:57:01 (4 occurrences) Last logged: 18:57:01

light.steh_1: Lookup table not found (model: LED1536G5, color_mode: brightness) light.steh_2: Lookup table not found (model: LED1536G5, color_mode: brightness)

Must have been the time, the lights get switched on. Hope that helps.

dieewossmarthome commented 1 year ago

These error messages for me:

2023-09-21 11:34:18.390 ERROR (MainThread) [custom_components.powercalc.strategy.lut] light.buro_turseite: Lookup table not found (model: LED1545G12, color_mode: brightness) 2023-09-21 11:34:19.406 ERROR (MainThread) [custom_components.powercalc.strategy.lut] light.buro_fensterseite: Lookup table not found (model: LED1545G12, color_mode: brightness) 2023-09-21 11:35:14.962 ERROR (MainThread) [custom_components.powercalc.strategy.lut] light.badezimmer_eingang: Lookup table not found (model: LED1537R6, color_mode: brightness) 2023-09-21 11:35:15.993 ERROR (MainThread) [custom_components.powercalc.strategy.lut] light.badezimmer_dusche: Lookup table not found (model: LED1537R6, color_mode: brightness) 2023-09-21 11:35:16.001 ERROR (MainThread) [custom_components.powercalc.strategy.lut] light.badezimmer_heizung: Lookup table not found (model: LED1537R6, color_mode: brightness) 2023-09-21 11:35:16.009 ERROR (MainThread) [custom_components.powercalc.strategy.lut] light.badezimmer_fenster: Lookup table not found (model: LED1537R6, color_mode: brightness) 2023-09-21 11:35:16.016 ERROR (MainThread) [custom_components.powercalc.strategy.lut] light.badezimmer_badewanne: Lookup table not found (model: LED1537R6, color_mode: brightness) 2023-09-21 11:35:16.025 ERROR (MainThread) [custom_components.powercalc.strategy.lut] light.badezimmer_toilette: Lookup table not found (model: LED1537R6, color_mode: brightness)

bramstroker commented 1 year ago

All of you have different lights giving the same issue:

It can't be a coincidence you are experiencing issues all of a sudden. @blackteddybear @Oldchatterhand43 do you also use the Hue integration as @dieewossmarthome?

The problem is these are lights which support color temparature, but in HA the light is reported as active color mode brightness There should be no possibility this light can have brightness color mode reported in HA. I suspect maybe something has changed in Hue integration causing this issue.

Oldchatterhand43 commented 1 year ago

Yes, I am using the hue integration as well. But I got this issue quite a few weeks... Just had to find this thread and learn what the problem is 😉 So I can't name the exact date or what changed in hue (integration)

bramstroker commented 1 year ago

Could you guys share the state attributes of the concerning light entity? From developer tools. We might need to raise an issue on HA core issue tracker. Or I can notice the developer of hue integration on discord.

Oldchatterhand43 commented 1 year ago

You mean this?

min_color_temp_kelvin: 2202 max_color_temp_kelvin: 4000 min_mireds: 250 max_mireds: 454 supported_color_modes:

mode: normal dynamics: none friendly_name: Steh 1 supported_features: 40

bramstroker commented 1 year ago

@Oldchatterhand43 Yes that's what I mean. Could you please format? Is there no color_mode attribute?

bramstroker commented 1 year ago

Also this are the state attributes when the light is turned on, right?

Oldchatterhand43 commented 1 year ago

With lights turned on:

min_color_temp_kelvin: 2202
max_color_temp_kelvin: 4000
min_mireds: 250
max_mireds: 454
supported_color_modes:
  - color_temp
mode: normal
dynamics: none
friendly_name: Steh 1
supported_features: 40
color_mode: brightness
brightness: 77
Oldchatterhand43 commented 1 year ago

@Oldchatterhand43 Yes that's what I mean. Could you please format? Is there no color_mode attribute?

What exactly do you mean with format?

bramstroker commented 1 year ago

Thanks. did you add color_mode, because it wasn't in your comment previously? I have formatted. You can put three backtics on before the code block and after and github will format it nicely.

Oldchatterhand43 commented 1 year ago

Ah, thanks. I'll try that next time.

My first comment was the code with lights off, second one is with lights on. The part with color_mode only appears when the lights are on.

bramstroker commented 1 year ago
  • LED1536G5

That's what I thought already. I'm currently discussing on Discord with developer of Hue integration to see if we can workout what's wrong. The color_mode is not correct. It's brightness, but needs to be color_temp. There were some changes in Hue integration in last HA version which causes this issue.

bramstroker commented 1 year ago

@Oldchatterhand43 Are you on discord? Have some additional questions which you can try.

bramstroker commented 1 year ago

You might add me bramski#3414. Or any others in this issue which can provide additional debug information.

dieewossmarthome commented 1 year ago

Sorry, ich war gestern nicht am Mac, hier noch ein paar Daten von mir: Color temperature light (TRADFRI bulb GU10 WS 400lm) von IKEA of Sweden:

Light off: min_color_temp_kelvin: 2202 max_color_temp_kelvin: 4000 min_mireds: 250 max_mireds: 454 supported_color_modes: color_temp mode: normal dynamics: none friendly_name: Badezimmer Dusche supported_features: 40

Light on: min_color_temp_kelvin: 2202 max_color_temp_kelvin: 4000 min_mireds: 250 max_mireds: 454 supported_color_modes: color_temp mode: normal dynamics: none friendly_name: Badezimmer Dusche supported_features: 40 color_mode: brightness brightness: 128

Color temperature light (TRADFRI bulb E27 WS opal 980lm) von IKEA of Sweden:

Light off: min_color_temp_kelvin: 2202 max_color_temp_kelvin: 4000 min_mireds: 250 max_mireds: 454 supported_color_modes: color_temp mode: normal dynamics: none friendly_name: Büro Fensterseite supported_features: 40

Light on: min_color_temp_kelvin: 2202 max_color_temp_kelvin: 4000 min_mireds: 250 max_mireds: 454 supported_color_modes: color_temp mode: normal dynamics: none friendly_name: Büro Fensterseite supported_features: 40 color_mode: brightness brightness: 255

Room von Signify Netherlands B.V.: 2 x Color temperature light (TRADFRI bulb E27 WS opal 980lm) von IKEA of Sweden:

Light off: min_color_temp_kelvin: 2202 max_color_temp_kelvin: 4000 min_mireds: 250 max_mireds: 454 supported_color_modes: color_temp is_hue_group: true hue_scenes: Gedimmt, Frühlingsblüten, Nordlichter, Lesen, Tropendämmerung, Entspannen, Konzentrieren, Hell, Energie tanken, Sonnenuntergang Savanne, Nachtlicht hue_type: room lights: Büro Türseite, Büro Fensterseite dynamics: false icon: mdi:lightbulb-group friendly_name: Büro supported_features: 40

Light on: min_color_temp_kelvin: 2202 max_color_temp_kelvin: 4000 min_mireds: 250 max_mireds: 454 supported_color_modes: color_temp is_hue_group: true hue_scenes: Gedimmt, Frühlingsblüten, Nordlichter, Lesen, Tropendämmerung, Entspannen, Konzentrieren, Hell, Energie tanken, Sonnenuntergang Savanne, Nachtlicht hue_type: room lights: Büro Türseite, Büro Fensterseite dynamics: false icon: mdi:lightbulb-group friendly_name: Büro supported_features: 40 color_mode: color_temp brightness: 255 color_temp_kelvin: 2237 color_temp: 447 hs_color: 29.667, 82.994 rgb_color: 255, 148, 43 xy_color: 0.575, 0.389

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 5 days with no activity.

Jopand commented 1 year ago

Any updates on this issue?