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

Hey google "turn on lights" returns error #14725

Closed
kristoffernolgren opened this issue May 31, 2018 · 1 comment · Fixed by #15791
Closed

Hey google "turn on lights" returns error #14725

kristoffernolgren opened this issue May 31, 2018 · 1 comment · Fixed by #15791
Assignees

Comments

@kristoffernolgren
Copy link

Home Assistant release with the issue:

0.68.1

Last working Home Assistant release (if known):

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

hassbian
Component/platform:

Google home and possibly deconz

Description of problem:
I have 4 lights added to deconz in two groups.

When I ask google to turn off ligths, it says turning off seven lights (the individual lights, the two groups and lights.all

When I ask google turn on lights, Everything turns off, but I get an unkown error.

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

Traceback (if applicable):
this is the output form

Error handling message {'inputs': [{'payload': {'commands': [{'execution': [{'command': 'action.devices.commands.OnOff', 'params': {'on': True}}], 'devices': [{'id': 'group.all_lights'}, {'id': 'light.wardrobe'}, {'id': 'light.bathroom'}, {'id': 'light.bygglampa'}, {'id': 'light.ceiling'}, {'id': 'light.extra'}, {'id': 'light.bedroom_lights'}]}]}, 'intent': 'action.devices.EXECUTE'}], 'requestId': '9829203149368338551'}: {'errorCode': 'unknownError'}


Unexpected error
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/google_assistant/smart_home.py", line 217, in _process
    result = await handler(hass, config, inputs[0].get('payload'))
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/google_assistant/smart_home.py", line 331, in handle_devices_execute
    'states': entity.query_serialize(),
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/google_assistant/smart_home.py", line 158, in query_serialize
    deep_update(attrs, trt.query_attributes())
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/google_assistant/trait.py", line 322, in query_attributes
    color_util.color_temperature_mired_to_kelvin(temp)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/util/color.py", line 478, in color_temperature_mired_to_kelvin
    return math.floor(1000000 / mired_temperature)
ZeroDivisionError: division by zero

Additional information:

@TheJulianJES
Copy link
Member

Seems to be similar to #13381

@ghost ghost assigned Kane610 Aug 2, 2018
@ghost ghost added the in progress label Aug 2, 2018
@ghost ghost removed the in progress label Aug 3, 2018
@home-assistant home-assistant locked and limited conversation to collaborators Dec 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants