Skip to content

Fix current_operation value in OpenAIR Valve#29

Open
ricklambrechts wants to merge 1 commit intoFlamingo-tech:mainfrom
ricklambrechts:fix-valve-operation
Open

Fix current_operation value in OpenAIR Valve#29
ricklambrechts wants to merge 1 commit intoFlamingo-tech:mainfrom
ricklambrechts:fix-valve-operation

Conversation

@ricklambrechts
Copy link
Copy Markdown

@ricklambrechts ricklambrechts commented Feb 17, 2026

The installation fails with the latest version of the OpenAIR Valve yaml.

/config/esphome/bathroom-open-air-valve.yaml: In lambda function:
/config/esphome/bathroom-open-air-valve.yaml:139:38: error: 'VALVE_OPERATION_OPEN' was not declared in this scope
  139 |           id(air_valve).current_operation = VALVE_OPERATION_OPEN;
      |                                      ^~~~~~~~~~~~~~~~~~~~
Compiling .pioenvs/bathroom-open-air-valve/efuse/src/esp_efuse_fields.c.o
Compiling .pioenvs/bathroom-open-air-valve/efuse/src/esp_efuse_utility.c.o
/config/esphome/bathroom-open-air-valve.yaml: In lambda function:
/config/esphome/bathroom-open-air-valve.yaml:147:38: error: 'VALVE_OPERATION_CLOSED' was not declared in this scope
  147 |           id(air_valve).current_operation = VALVE_OPERATION_CLOSED;
      |                                      ^~~~~~~~~~~~~~~~~~~~~~

This is introduced with the latest update c407a78#diff-8616e4862930b609ac6527161afa91c7f4893fbef2a403a169ca002d9e8ee517.

Fixed based on the https://esphome.io/components/valve/ documentation.

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

Successfully merging this pull request may close these issues.

1 participant