Skip to content

Commit 9f4f6c9

Browse files
feat(1P): add state_class measurement to External CT Power sensor (#152)
External CT Power (register 172) had device_class: power but no state_class, so Home Assistant kept no long-term statistics for it. Add state_class: measurement to match the other power sensors. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent c68768a commit 9f4f6c9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎pv_inverter/packages/deye_hybrid_1p/grid.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ sensor:
266266
- lambda: ${func_scale_ac_power}
267267
unit_of_measurement: "W"
268268
device_class: power
269+
state_class: "measurement"
269270
accuracy_decimals: 0
270271
value_type: S_WORD
271272
icon: "mdi:transmission-tower"

0 commit comments

Comments
 (0)