home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.64k stars 30.79k forks source link

Unable to set color via Wink in 0.66 #13843

Closed brg468 closed 6 years ago

brg468 commented 6 years ago

Home Assistant release with the issue: 0.66

Last working Home Assistant release (if known): 0.65

Operating environment (Hass.io/Docker/Windows/etc.): Windows

Component/platform: Wink Please add the link to the documentation at https://www.home-assistant.io/components/ of the component/platform in question. -->

Description of problem: After upgrading to 0.66, I am unable to set the color of my Osram RGBW bulbs that are connected through Wink via the color picker. No errors, but the bulbs always stay the same color and display as white in the frontend. Reverted to 0.65 and everything works normally.

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

Traceback (if applicable):

Additional information:

MuppetOwl commented 6 years ago

Can confirm same error for Z-wave bulbs. Color does not change on Zipato bulb 2.

rbflurry commented 6 years ago

Seeing the same thing. I wonder if its related to https://github.com/home-assistant/home-assistant/pull/11288

rbflurry commented 6 years ago

Looks to me (and i could be way off) like either HA or the python-wink library is not normalizing the hue/sat attributes.

2018-05-02 21:39:25 DEBUG (Thread-6) [pywink.api] {'errors': [], 'pagination': {}, 'data': {'created_at': 1525103788.186, 'object_type': 'hub_device', 'hub_device_id': '33', 'local_id': 33, '**desired_state': {'powered': True, 'saturation': 85.71428571428571, 'hue': 285},** 'name': 'New HA Color Dimmable Light', 'updated_at': 1525311534.32, 'last_reading': {'powered': True, 'color_temperature': 6410, 'color_x': 0.38054, 'brightness': 1, 'color_model': 'hsb', 'saturation': 0.902, 'color_y': 0.37691, 'connection': True, 'hue': 0.252}, 'discovered_at': 1525103791.685}}

Wink api. image

By using the services page in HA and using the following command it works correctly and sets the color.

{
  "entity_id": "light.wink_led_strip_tv",
  "hs_color": [0.252, 0.9]
}
amelchio commented 6 years ago

I tried fixing this with #14263 but I do not have the hardware so I need help with testing.