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

PH01 Humidifier unavailable #108

Closed
WendelFelius opened this issue Jan 4, 2024 · 10 comments
Closed

PH01 Humidifier unavailable #108

WendelFelius opened this issue Jan 4, 2024 · 10 comments

Comments

@WendelFelius
Copy link

WendelFelius commented Jan 4, 2024

Dyson: PH01 (Pure Humidify+Cool)
HA: 2024.1
ha-dyson: 1.3.6

I was using shenxn/ha-dyson before, but completely deleted it and started using libdyson-wg/ha-dyson yesterday (thanks for the continues support!). The fan now works brilliant, but I can't get the humidifier to work. Says it's unavailable. Anything I can do in order to fix this?

Screenshot 2024-01-04 om 08 44 48@2x
Screenshot 2024-01-04 om 08 45 19@2x

@gerdschadler
Copy link

Same issue after upgrading to ha 2024.1

@EDelsman
Copy link

EDelsman commented Jan 4, 2024

This is probably due to a change from an int to an enum:

2024-01-04 15:47:56.892 ERROR (MainThread) [homeassistant.components.humidifier] Error adding entities for domain humidifier with platform dyson_local
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1278, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 941, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1062, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1001, in __async_calculate_state
attr.update(self.state_attributes or {})
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/humidifier/init.py", line 217, in state_attributes
if HumidifierEntityFeature.MODES in self.supported_features:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'int' is not iterable
2024-01-04 15:47:56.926 ERROR (MainThread) [homeassistant.components.humidifier] Error while setting up dyson_local platform for humidifier
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 368, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 752, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1278, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 941, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1062, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1001, in __async_calculate_state
attr.update(self.state_attributes or {})
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/humidifier/init.py", line 217, in state_attributes
if HumidifierEntityFeature.MODES in self.supported_features:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'int' is not iterable

@bdraco
Copy link
Contributor

bdraco commented Jan 5, 2024

@bdraco
Copy link
Contributor

bdraco commented Jan 5, 2024

@dotvezz
Copy link
Member

dotvezz commented Jan 5, 2024

Ahh, I've been working on a more complete update since (until now) the deprecated features were non-breaking for this integration. But I'll get out a mini-release tonight to get humidifiers working again.

@mundschenk-at
Copy link

This is mitigated by HA 2024.1.1 which was just released.

@dotvezz
Copy link
Member

dotvezz commented Jan 5, 2024

Nice. That gives me some time to finish the comprehensive cleanup. Thanks for the info @mundschenk-at

@LeeHarvey94
Copy link

This issue is also impacting my Purifier Hot+Cool Formaldehyde (climate and fan entities) since 2024.1 it's been showing as no longer being provided by the dyson_local integration.

@codyc1515
Copy link
Contributor

This should be resolved now on the latest version.

@dotvezz
Copy link
Member

dotvezz commented Jan 10, 2024

@codyc1515 you're beating me everywhere these days! Everyone having issues, please feel free to follow up if 1.3.7 doesn't resolve your problems.

@dotvezz dotvezz closed this as completed Jan 10, 2024
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

8 participants