Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Light has no color_temp attribute (most of the time) #24143

Closed
bedaes opened this issue May 27, 2019 · 21 comments
Closed

Light has no color_temp attribute (most of the time) #24143

bedaes opened this issue May 27, 2019 · 21 comments
Assignees

Comments

@bedaes
Copy link

bedaes commented May 27, 2019

Home Assistant release with the issue:
0.93.2

DeCONZ: 2.05.64
AppDaemon: 3.0.5

Operating environment (Hass.io/Docker/Windows/etc.):
Ubuntu 18.04
home-assistant installed in virtualenv

Component/platform:
https://www.home-assistant.io/components/deconz/

Description of problem:
I have a single light (IKEA Floalt 30x30) connected via deCONZ. I'm trying to read the color_temp attribute of this one light with AppDaemon, but most of the time there is none. It's the same in AppDaemon and in the Developer tools -> States.

I have to restart both deconz and home-assistant (in that specific order) to get the color_temp attribute back. As soon as I issue a change in color_temp via AppDaemon(e.g. self.turn_on('light.warehouse_panel', color_temp= 40)) or via the Color temperature slide in Lovelance it's gone.

Here are two screenshots, the light is in state on, in the first picture it has a color_temp attribute but not in the second.

with_color_temp

without_color_temp

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
Nothing special about my configuration.yaml

@Kane610
Copy link
Member

Kane610 commented May 30, 2019

There is a major rewrite of the backend coming with today's beta of 0.94. Would you mind upgrading to the beta and see if there is any difference in behavior? Else it is time to start looking at the logs

@bedaes
Copy link
Author

bedaes commented May 30, 2019

I've retested with 0.94.0b0 but sadly there's no change in behaviour.

My logger config looks like this:

logger:
  default: debug
  logs:
    pydeconz: debug
    homeassistant.components.deconz: debug

The attached log holds all the logged information from the moment AppDaemon sends the command until the color_temp attribute vanishes.

Since I wrote this ticket I added a the light.warehouse_panel to a light group called warehouse_light_group. I just wanted to let you know because it's mentioned in the logs. The config looks like this:

light:
  - platform: group
    name: warehouse_light_group
    entities:
      - light.warehouse_panel

If there's anything I can do to help debugging this, please let me know!

@Kane610
Copy link
Member

Kane610 commented May 31, 2019

I can't see anything out of the ordinary in the logs

@bedaes
Copy link
Author

bedaes commented May 31, 2019

I just saw there are two lines logged where either old_state or new_state has no color_temp attribute.

old_state has, new_state don't:

2019-05-30 20:32:52 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.warehouse_panel, 
old_state=<state light.warehouse_panel=on; min_mireds=153, max_mireds=500, brightness=186, color_temp=312, is_deconz_group=False, friendly_name=Warehouse Panel, supported_features=43 @ 2019-05-30T20:30:33.885891+02:00>, 
new_state=<state light.warehouse_panel=on; min_mireds=153, max_mireds=500, brightness=186, is_deconz_group=False, friendly_name=Warehouse Panel, supported_features=43 @ 2019-05-30T20:30:33.885891+02:00>>

new_state has, old_state don't:

2019-05-30 20:32:52 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=light.warehouse_light_group, 
old_state=<state light.warehouse_light_group=on; min_mireds=153, max_mireds=500, brightness=186, color_temp=312, friendly_name=warehouse_light_group, supported_features=43 @ 2019-05-30T20:30:33.904403+02:00>, 
new_state=<state light.warehouse_light_group=on; min_mireds=153, max_mireds=500, brightness=186, friendly_name=warehouse_light_group, supported_features=43 @ 2019-05-30T20:30:33.904403+02:00>>

@Kane610
Copy link
Member

Kane610 commented May 31, 2019

What happens after 2019-05-30 20:32:52 DEBUG (MainThread) [pydeconz.websocket] Websocket data: {"e":"changed","id":"1","r":"lights","state":{"alert":null,"bri":186,"colormode":"xy","ct":411,"on":true,"reachable":true},"t":"event","uniqueid":"00:0d:6f:ff:fe:1b:c3:61-01"}

It is really weird, would like to see the raw values of the entity when color_temp disappears

@bedaes
Copy link
Author

bedaes commented Jun 1, 2019

I need some help here. Could you please explain to me how to get the raw value of entites? Thx!

@Kane610
Copy link
Member

Kane610 commented Jun 1, 2019

You'd need to add new prints to the code. Since there is no such thing today

@TypQxQ
Copy link

TypQxQ commented Aug 18, 2019

I belive the problem is with Deconz.

I have the same problem with IKEA Trådfri E27 White Spectrum bulb. I have 3 in a group and all 3 have lost the atribute. Running HA 0.96.5 and Deconz 2.05.65.

I updated to HA 97.2, reloaded the webpage and still no attribute. I then restarted Deconz ant reloaded the Chrome tab with HA and the attribute appeared.

Lost the attribute again after changing it trough Node-Red and to get it back I only changed the Color Temperature trough Deconz Phoscon webapp.

tradfri

@Kane610
Copy link
Member

Kane610 commented Sep 25, 2019

Will be solved by dresden-elektronik/deconz-rest-plugin#1861

@Kane610
Copy link
Member

Kane610 commented Oct 13, 2019

deCONZ 2.05.70 should be released during the coming week. Closing this issue.

@Kane610 Kane610 closed this as completed Oct 13, 2019
@Nicxe
Copy link

Nicxe commented Nov 17, 2019

I have updated to the 2.05.70 and still have this issue, no color_temp or kelvin as state.

image

Anyone els stil have this issue?

@sverleysen
Copy link

I have the same error

@sverleysen
Copy link

I just got an update of the addon with an update to 2.05.71, but I still have the error...

@alexlopezcifuentes
Copy link

I have here the same issue. No color_temp attribute is shown when using Ikea bulb.

Screen Shot 2019-11-22 at 20 23 23

@Nicxe
Copy link

Nicxe commented Nov 23, 2019

Seams like a problem to more then me, mabey the issue can be opened again @Kane610

@Kane610
Copy link
Member

Kane610 commented Nov 23, 2019

Since Dresden has confirmed they will fix the issue this will be kept closed. Keep pointing out that you still have these issues to them here dresden-elektronik/deconz-rest-plugin#1861

@jdeluyck
Copy link
Contributor

Unfortunately still not fixed at the moment.

@miki9987
Copy link

miki9987 commented Mar 2, 2020

Can confirm it still not fixed

@mvieleers
Copy link

I'm on version 2.05.75/8-3-2020.
This is definitely not fixed yet.

@Kane610
Copy link
Member

Kane610 commented Jun 21, 2020

@EarlOfBurton please open an issue on the addon repo

@EarlOfBurton
Copy link

@Kane610, sorry, I posted it in the right place now and will delete my post here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants