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

dmaker.fan.p39 (Smart Tower Fan) shows error when trying to configure #228

Open
fribse opened this issue Jul 26, 2023 · 3 comments
Open

Comments

@fribse
Copy link

fribse commented Jul 26, 2023

HA: 2023.7.3
Integration: 2023.7.0.0

I just tried adding my two Xiaomi fans through the custom integration, instead of the cloud integration.
My old Smartmi Standing Fan 2S integrates without issues, but my neewer Smart Tower fan gives error in the log:

Logger: homeassistant.components.fan
Source: custom_components/xiaomi_miio_fan/fan.py:2281
Integration: Blæser (documentation, issues)
First occurred: 20.16.38 (1 occurrences)
Last logged: 20.16.38

xiaomi_miio_fan: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 570, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 940, in async_device_update
    await self.async_update()
  File "/config/custom_components/xiaomi_miio_fan/fan.py", line 2180, in async_update
    self._natural_mode = state.mode == OperationModeFanP39.Nature
                         ^^^^^^^^^^
  File "/config/custom_components/xiaomi_miio_fan/fan.py", line 2281, in mode
    return OperationModeFanP39(self.data["mode"]).name
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/enum.py", line 711, in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/enum.py", line 1128, in __new__
    raise ve_exc
ValueError: None is not a valid OperationModeFanP39
@brusapa
Copy link

brusapa commented Aug 15, 2023

HA: 2023.8.2
Integration: 2023.7.0.0

I'm getting the same error with my p39 fan. Have you achieved to get it working?

@jan-sindelar
Copy link

I'm getting the same error, still not working on HA 2023.8.2 and integration 2023.7.0.0. It was discussed (and unfortunately closed) in issue #213.

@fribse
Copy link
Author

fribse commented Aug 16, 2023

I've had to keep it in cloud integration for the time meaning :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants