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.41k stars 30.65k forks source link

Color Temperature/White values/brightness on Magiclights #7585

Closed bumblingthroughlife closed 7 years ago

bumblingthroughlife commented 7 years ago

Make sure you are running the latest version of Home Assistant before reporting an issue.

You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:

Home Assistant release (hass --version): 0.44.2

Python release (python3 --version): 3.4.2

Component/platform: light/MagicLight

Description of problem: Unable to control color temperature. On Magic light app, there are two settings for white. warm white and cool white. I initially set to warm white (to match my yeelights and I like it). When adjusting brightness to max, it would set all the lights to warm white. Now it goes to cool white and I cannot adjust it to warm. I don't even know what to troubleshoot. the color changes work, but when selecting white fade it defaults to cool white, and I can't get it to go back to warm white. also brightness seems to be broken, but not totally. willing to troubleshoot under direction. under 0.43.1 setting it to white fade would turn it to cool white, but then using brightness slider would change back to warm white if on max brightness.

Expected: behavior was ok up to 0.43.X versions. unable to update past 43 until behavior is restored.

Problem-relevant configuration.yaml entries and steps to reproduce:

- platform: flux_led
  devices:
    192.168.1.201:
      name: Bedroom Left
    192.168.1.202:
      name: Living Room 1
    192.168.1.203:
      name: Living Room 2
    192.168.1.204:
      name: Bedroom Right
    192.168.1.205:
      name: Bedroom Lamp
    192.168.1.206:
      name: Den
  1. developer tools > light > turn_on
  2. {"entity_id":"light.den", "rgb_color":[255, 255, 255]}
  3. Tried changing brightness, white value, rgb colors. Only going back into magiclight app and clicking warm white changed it to a warm white.

Traceback (if applicable):

Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
    result = coro.throw(exc)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/core.py", line 1015, in _event_to_service_call
    yield from service_handler.func(service_call)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/light/__init__.py", line 248, in async_handle_light_service
    yield from light.async_turn_on(**params)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/light/flux_led.py", line 238, in turn_on
    self._bulb.setRgbw(*self.rgb_color, w=white_value)
  File "/home/useraccount/.homeassistant/deps/flux_led/__main__.py", line 841, in setRgbw
    raise Exception
Exception
2017-05-13 22:23:44 ERROR (Thread-4) [pynetgear] Error talking to API
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/requests/models.py", line 374, in prepare_url
    scheme, auth, host, port, path, query, fragment = parse_url(url)
  File "/usr/local/lib/python3.4/dist-packages/requests/packages/urllib3/util/url.py", line 199, in parse_url
    raise LocationParseError(url)
requests.packages.urllib3.exceptions.LocationParseError: Failed to parse: None:None

Additional info: I think this also makes my yeelights unable to set brightness by using an emulated hue via google home but I haven't tested enough on it. Something's weird with brightness and white values.

w1ll1am23 commented 7 years ago

So I am seeing the same thing, but not seeing any tracebacks in my logs. I do see something about update already in progress.

bumblingthroughlife commented 7 years ago

Issue is still present in 0.45. Another thing I realized. You can select the red_fade command from the drop down, but you cannot select red using RGB, or any other color method. Even the graphical color square doesn't work.

balloobbot commented 7 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:

bumblingthroughlife commented 7 years ago

This issue was fixed with the latest updates. Not sure which one did it, but it's working now.