-
-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
ESPHome RGBCCT causes repeated "Connection error occurred: division by zero" disconnections #89846
Comments
Hey there @OttoWinter, @jesserockz, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) esphome documentation |
Additionally, the devices are running ESPHome 2023.3.0 |
Still seems to be an issue with Home Assistant 2023.5.2 and ESPHome 2023.4.4 |
I just got a CF-LBC from cloudfree.shop and am running into the same problem. ESPHome 2023.5.3, Home Assistant 2023.5.4. |
Setting the color temperatures of the white LEDs seems to be required in ESPHome, even though the ESPHome documentation says that it's optional. I don't know if these color temperatures are correct for my bulb but at least Home Assistant doesn't get a divide by zero error.
|
Likely fixed by #91424 but that PR isn't moving forward right now |
As soon as #94960 is merged, I'll take a crack at fixing this one |
The problem
When using an ESPHome H801 dimmer device with the following configuration, turning the device outputs on causes it to be repeatedly disconnected from the Home-Assistant instance.
What version of Home Assistant Core has the issue?
core-2023.3.4
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
ESPHome
Link to integration documentation on our website
https://www.home-assistant.io/integrations/esphome/
Diagnostics information
config_entry-esphome-483d73c2800fe33a60f4fa16f6a951f5.json.txt
Example YAML snippet
Anything in the logs that might be useful for us?
2023-03-17 08:02:41.662 ERROR (MainThread) [homeassistant] Error doing job: Fatal error: protocol.data_received() call failed. Traceback (most recent call last): File "/usr/local/lib/python3.10/asyncio/selector_events.py", line 876, in _read_ready__data_received self._protocol.data_received(data) File "/usr/local/lib/python3.10/site-packages/aioesphomeapi/_frame_helper.py", line 195, in data_received self._callback_packet(msg_type_int, bytes(packet_data)) File "/usr/local/lib/python3.10/site-packages/aioesphomeapi/_frame_helper.py", line 110, in _callback_packet self._on_pkt(Packet(type_, data)) File "/usr/local/lib/python3.10/site-packages/aioesphomeapi/connection.py", line 683, in _process_packet handler(msg) File "/usr/local/lib/python3.10/site-packages/aioesphomeapi/client.py", line 376, in on_msg on_state(cls.from_pb(msg)) File "/usr/src/homeassistant/homeassistant/components/esphome/entry_data.py", line 210, in async_update_state self.state_subscriptions[subscription_key]() File "/usr/src/homeassistant/homeassistant/components/esphome/__init__.py", line 777, in _on_state_update self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 559, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 602, in _async_write_ha_state attr.update(self.state_attributes or {}) File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 1018, in state_attributes data.update(self._light_internal_convert_color(color_mode)) File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 966, in _light_internal_convert_color *rgbww_color, self.min_color_temp_kelvin, self.max_color_temp_kelvin File "/usr/src/homeassistant/homeassistant/components/light/__init__.py", line 888, in min_color_temp_kelvin return color_util.color_temperature_mired_to_kelvin(self.max_mireds) File "/usr/src/homeassistant/homeassistant/util/color.py", line 621, in color_temperature_mired_to_kelvin return math.floor(1000000 / mired_temperature) ZeroDivisionError: division by zero 2023-03-17 08:02:41.681 WARNING (MainThread) [aioesphomeapi.connection] tin_hut_shelf_lights_bench @ 172.24.32.86: Connection error occurred: division by zero
Additional information
Some logs from the device itself
The text was updated successfully, but these errors were encountered: