fix: cuco.plug.cp7pd power consumption and power value precision (#1502)

This commit is contained in:
LiShuzhen 2025-11-21 10:13:43 +08:00
parent 636e80b1f4
commit e3d414919d
2 changed files with 14 additions and 0 deletions

View File

@ -748,6 +748,7 @@ class MIoTDevice:
'w': UnitOfPower.WATT,
'W': UnitOfPower.WATT,
'kW': UnitOfPower.KILO_WATT,
'Wh': UnitOfEnergy.WATT_HOUR,
'kWh': UnitOfEnergy.KILO_WATT_HOUR,
'A': UnitOfElectricCurrent.AMPERE,
'mA': UnitOfElectricCurrent.MILLIAMPERE,

View File

@ -371,6 +371,19 @@ urn:miot-spec-v2:device:outlet:0000A002:cuco-cp2:2:
urn:miot-spec-v2:device:outlet:0000A002:cuco-cp2d:1:
prop.3.2:
unit: mA
urn:miot-spec-v2:device:outlet:0000A002:cuco-cp7pd:1:
prop.11.1:
unit: Wh
value-range:
- 0
- 65535
- 0.001
expr: (src_value*1000)
prop.11.4:
value-range:
- 0
- 10000
- 0.01
urn:miot-spec-v2:device:outlet:0000A002:cuco-v3:1:
prop.11.1:
format: float