Skip to content

pointIndex of mode now 11 instead of 7 #17

Description

@MarcDonald

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"},
    ],

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions