Skip to content

Conversation

@dohun0310
Copy link

This pull request updates the mapping and configuration of power-related capabilities in app.js to improve consistency and accuracy in how power and energy measurements are handled. The main changes involve swapping the underlying data entries and capability IDs for measure_power and meter_power, as well as updating their associations in device classes.

Capability mapping updates:

  • Changed the measure_power capability to use the powerMeter data entry and capability ID instead of powerConsumptionReport.
  • Changed the meter_power capability to use the energyMeter data entry and capability ID, and set its divider to 0 instead of 1000.

Device class capability associations:

  • In CapabilityMap2, updated the sensor class to use meter_power instead of measure_power.
  • In CapabilityMap2, updated the powerMeter class to use measure_power instead of meter_power

@dohun0310 dohun0310 marked this pull request as draft January 10, 2026 03:05
@dohun0310 dohun0310 marked this pull request as ready for review January 10, 2026 03:05
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