Skip to content

Conversation

@Romancha
Copy link

@Romancha Romancha commented Nov 7, 2025

Proposed change

Add quirk for EfektaLab EFEKTA_iAQ3 air quality sensor with comprehensive configuration support

Features:

  • VOC sensor support
  • Temperature/Humidity calibration - offset configuration for both sensors
  • CO2 sensor configuration - forced recalibration, automatic calibration, altitude compensation, manual calibration (ppm)
  • Display settings - rotation (0°/90°/180°/270°), automatic brightness, night mode with configurable hours
  • Relay control - CO2-based relay control with configurable high/low thresholds and logic inversion
  • Chart periods - configurable 1H/24H chart periods for CO2 and VOC
  • Sensor selection - choice between internal/external temperature/humidity sensor for display

Additional information

-

Device diagnostics

zha-01JA3XGQ4YQEGYDX751RBJAC66-EfektaLab EFEKTA_iAQ3-3a3ee82feee43daec2da2628e7580eda-5.json

Checklist

  • The changes are tested and work correctly
  • pre-commit checks pass / the code has been formatted using Black
  • Tests have been added to verify that the new code works
  • Device diagnostics data has been attached

@codecov
Copy link

codecov bot commented Nov 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.28%. Comparing base (928268c) to head (6e1c42e).

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #4469      +/-   ##
==========================================
+ Coverage   92.24%   92.28%   +0.04%     
==========================================
  Files         369      370       +1     
  Lines       12094    12158      +64     
==========================================
+ Hits        11156    11220      +64     
  Misses        938      938              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@puddly puddly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I've left a few tiny comments regarding attributes

)


class AnalogInputCluster(CustomCluster, AnalogInput):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rename this to something manufacturer-specific?

"""Intercept present_value updates and relay to VOC cluster."""
super()._update_attribute(attrid, value)
if attrid == self.PRESENT_VALUE and value is not None:
self.endpoint.voc_level._update_attribute(MEASURED_VALUE, value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Attribute IDs should be pulled from the attribute definition as opposed to relying on a global constant: EmulatedVOCMeasurement.AttributeDefs.measured_value.id

Comment on lines 142 to 144
30, # min_interval: 30 seconds
600, # max_interval: 10 minutes
1.0, # reportable_change: 1 unit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
30, # min_interval: 30 seconds
600, # max_interval: 10 minutes
1.0, # reportable_change: 1 unit
min_interval=30,
max_interval=600,
reportable_change=1.0,

"""Bind cluster and configure reporting on the physical AnalogInput cluster."""
result = await self.endpoint.analog_input.bind()
await self.endpoint.analog_input.configure_reporting(
AnalogInputCluster.PRESENT_VALUE,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
AnalogInputCluster.PRESENT_VALUE,
AnalogInputCluster.AttributeDefs.present_value.id,

@Romancha
Copy link
Author

Romancha commented Nov 7, 2025

Thanks! I've left a few tiny comments regarding attributes

Fixed and pushed, thanks for review

@Romancha Romancha requested a review from puddly November 11, 2025 08:37
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.

2 participants