home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.02k stars 29.09k forks source link

EPH Ember error 350 is not a valid ZoneMode #103661

Open asjmcguire opened 8 months ago

asjmcguire commented 8 months ago

The problem

I followed the instructions to temporarily setup the custom_component of ephember (since the core version does not work at all) - so now it at least logs in to the server. Unfortunately it still can't be setup with a traceback error.

What version of Home Assistant Core has the issue?

core-2023.11.1

What was the last working version of Home Assistant Core?

NA

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ephember

Link to integration documentation on our website

https://www.home-assistant.io/integrations/ephember/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Logger: homeassistant.components.climate
Source: helpers/entity_platform.py:507
Integration: Climate (documentation, issues)
First occurred: 17:05:04 (1 occurrences)
Last logged: 17:05:04

Error adding entities for domain climate with platform ephember
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 1023, in add_to_platform_finish
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 743, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 843, in _async_write_ha_state
    state, attr = self._async_generate_attributes()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 784, in _async_generate_attributes
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 749, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 256, in state
    hvac_mode = self.hvac_mode
                ^^^^^^^^^^^^^^
  File "/config/custom_components/ephember/climate.py", line 126, in hvac_mode
    mode = zone_mode(self._zone)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/pyephember/pyephember.py", line 248, in zone_mode
    return ZoneMode(zone_pointdata_value(zone, 'MODE'))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/enum.py", line 712, in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/enum.py", line 1135, in __new__
    raise ve_exc
ValueError: 350 is not a valid ZoneMode

Additional information

In the closed bug report I did see mention of someone else having this issue, but the person never came back with any information.

I just had a Samsung heat pump installed with the EPH Dual Band gateway and an RF Thermostat controller if that helps. The app modes are:

home-assistant[bot] commented 8 months ago

Hey there @ttroy50, mind taking a look at this issue as it has been labeled with an integration (ephember) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `ephember` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign ephember` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


ephember documentation ephember source (message by IssueLinks)

issue-triage-workflows[bot] commented 5 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

asjmcguire commented 5 months ago

Still very much broken, with 2024.1.6

ndm20 commented 3 months ago

Hi @ttroy50, have you been able to look into this issue yet please? I’ve been trying for weeks to get my EPH Ember control set up and I’m getting the same error as mentioned here.

Thanks in advance.

EDIT: The issue also appears to be referenced here but I can’t see a resolution - it just looks like the conversation spins off into something else.

ndm20 commented 1 month ago

@gjohansson-ST Hi my friend, I see you’ve made changes to this code recently. Are you able to help with this by any chance please?