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

pointIndex of mode now 11 instead of 7 #17

Open
MarcDonald opened this issue Nov 28, 2023 · 0 comments
Open

pointIndex of mode now 11 instead of 7 #17

MarcDonald opened this issue Nov 28, 2023 · 0 comments

Comments

@MarcDonald
Copy link

Issue

Unsure if related to #11 but it seems that the pointIndex for mode is now 11 instead of 7. Due to this I'm seeing the following errors in version 4.0.0:

  File "/workspaces/home-assistant-core/homeassistant/components/ephember/climate.py", line 127, in hvac_mode
    mode = zone_mode(self._zone)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/home/vscode/.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 711, in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/enum.py", line 1128, in __new__
    raise ve_exc

ValueError: 350 is not a valid ZoneMode

ValueError: 350 is not a valid ZoneMode

System Info

System Type: EMBER-TS1

API Responses

Other point indexes left out for brevity, but they did not change when switching between modes

AUTO:

    "pointDataList": [
        {"pointIndex": 7, "value": "350"},
        {"pointIndex": 11, "value": "0"},
    ],

MANUAL:

    "pointDataList": [
        {"pointIndex": 7, "value": "350"},
        {"pointIndex": 11, "value": "1"},
    ],

OFF:

    "pointDataList": [
        {"pointIndex": 7, "value": "350"},
        {"pointIndex": 11, "value": "4"},
    ],
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

1 participant