RobHofmann / HomeAssistant-GreeClimateComponent

Custom Gree climate component written in Python3 for Home Assistant. Controls AC's supporting the Gree protocol.
GNU General Public License v3.0
317 stars 105 forks source link

Error adding entity climate.gree_rdc for domain climate with platform gree #221

Open cooremans opened 3 days ago

cooremans commented 3 days ago

Describe the bug

I have 2 air conditioners, the first one does not cause any problems, but the second one is very regularly unavailable, I don't understand the reason.

they both have the same firmware and are the same brand.

restarting Home Assistant does not change anything and this problem has been there since the beginning of adding the two devices

Configuration Share your YAML here

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

restarting Home Assistant does not change anything and this problem has been there since the beginning of adding the two devices

Platform: Home assistant 2024.10.4

Additional context Add any other context about the problem here.

Logs Please share your Home Assistant logs here. Make sure to remove any personal/secret information. Enregistreur: homeassistant.components.climate Source: helpers/entity_platform.py:595 intégration: Thermostat (documentation, problèmes) S'est produit pour la première fois: 18:32:03 (1 occurrences) Dernier enregistrement: 18:32:03

Error adding entity climate.gree_rdc for domain climate with platform gree Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities await coro File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 909, in _async_add_entity await entity.add_to_platform_finish() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1365, in add_to_platform_finish await self.async_added_to_hass() File "/config/custom_components/gree/climate.py", line 1329, in async_added_to_hass self.update() File "/config/custom_components/gree/climate.py", line 1127, in update self.SyncState() File "/config/custom_components/gree/climate.py", line 703, in SyncState self.UpdateHAStateToCurrentACState() File "/config/custom_components/gree/climate.py", line 606, in UpdateHAStateToCurrentACState self.UpdateHACurrentPresetMode() File "/config/custom_components/gree/climate.py", line 580, in UpdateHACurrentPresetMode self._preset_mode = self._preset_modes[self._acOptions['SwingLfRig']]