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

Continued Integration Problem #67

Open
sigmapillar opened this issue Jan 12, 2025 · 4 comments
Open

Continued Integration Problem #67

sigmapillar opened this issue Jan 12, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@sigmapillar
Copy link

Version

.0.9.4

Home Assistant Version

Core 2025.1.2 Supervisor 2024.12.3 Operating System 14.1 Frontend 20250109.0

What is the issue?

Integration fails to start. Continued errors from Issue #58

Diagnostics

Diagnostics do not get published as the integration fails to start.

Relevant log output

HA Logs:

Logger: homeassistant.config_entries
Source: config_entries.py:640
First occurred: 4:27:47 PM (2 occurrences)
Last logged: 4:28:07 PM

Error setting up entry Daikin One for daikinone
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/daikinone/__init__.py", line 49, in async_setup_entry
    await data.update()
  File "/config/custom_components/daikinone/__init__.py", line 28, in update
    await self._update(no_throttle=no_throttle)  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/daikinone/__init__.py", line 37, in _update
    await self.daikin.update()
  File "/config/custom_components/daikinone/daikinone.py", line 246, in update
    await self.__refresh_thermostats()
  File "/config/custom_components/daikinone/daikinone.py", line 307, in __refresh_thermostats
    self.__thermostats = {device.id: self.__map_thermostat(device) for device in devices}
                                     ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
  File "/config/custom_components/daikinone/daikinone.py", line 345, in __map_thermostat
    equipment=self.__map_equipment(payload),
              ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/config/custom_components/daikinone/daikinone.py", line 411, in __map_equipment
    equipment[eid] = DaikinIndoorUnit(
                     ~~~~~~~~~~~~~~~~^
        id=eid,
        ^^^^^^^
    ...<15 lines>...
        power_usage=payload.data["ctIndoorPower"] / 10,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/local/lib/python3.13/site-packages/pydantic/_internal/_dataclasses.py", line 121, in __init__
    s.__pydantic_validator__.validate_python(ArgsKwargs(args, kwargs), self_instance=s)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for DaikinIndoorUnit
fan_demand_current_percent
  Input should be a valid integer, got a number with a fractional part [type=int_from_float, input_value=34.5, input_type=float]
    For further information visit https://errors.pydantic.dev/2.10/v/int_from_float
@zlangbert
Copy link
Owner

@sigmapillar thanks for the report. Try 0.9.5, that should fix this

@sigmapillar
Copy link
Author

Confirmed resolved! I do question some of the sensor values, perhaps another bug report?

image

some of these RPMs (rps?), temps, and power demand are really high or wildly high sounding. Compressor is pulling 6500 amps and defrost sensor is over 3200*F?

@zlangbert
Copy link
Owner

Yeah a of those look like invalid values. Can you share your diagnostics now?

@sigmapillar
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants