-
Notifications
You must be signed in to change notification settings - Fork 3
Implement Meter CC v6 #170
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Meter CC is essential for energy monitoring - smart plugs, power strips, and whole-home energy monitors report consumption via this CC. It reports values like kWh, W, V, A with multiple rate types and scales.
Scope:
MeterCommandClass : CommandClass<MeterCommand>with[CommandClass(CommandClassId.Meter)]GetAsync(MeterType type, MeterScale scale, MeterRateType rateType)→ current reading with precision and valueGetSupportedAsync()→ supported meter types, scales, rate types, reset supportResetAsync(MeterType type, MeterScale scale, MeterRateType rateType, int value)- reset accumulated readings (v6: targeted reset)- Process incoming
MeterReport(unsolicited from lifeline)
- Enums:
MeterType(Electric, Gas, Water, Heating, Cooling),MeterScale(kWh, kVAh, W, V, A, PowerFactor, etc.),MeterRateType(Import, Export, both) - Value parsing: handle variable precision (1-3 decimal places), multi-byte values, delta time
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request