mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-15 22:10:43 +08:00
fix: cuco.plug.cp7pd power consumption and power value precision (#1502)
This commit is contained in:
parent
636e80b1f4
commit
e3d414919d
@ -748,6 +748,7 @@ class MIoTDevice:
|
|||||||
'w': UnitOfPower.WATT,
|
'w': UnitOfPower.WATT,
|
||||||
'W': UnitOfPower.WATT,
|
'W': UnitOfPower.WATT,
|
||||||
'kW': UnitOfPower.KILO_WATT,
|
'kW': UnitOfPower.KILO_WATT,
|
||||||
|
'Wh': UnitOfEnergy.WATT_HOUR,
|
||||||
'kWh': UnitOfEnergy.KILO_WATT_HOUR,
|
'kWh': UnitOfEnergy.KILO_WATT_HOUR,
|
||||||
'A': UnitOfElectricCurrent.AMPERE,
|
'A': UnitOfElectricCurrent.AMPERE,
|
||||||
'mA': UnitOfElectricCurrent.MILLIAMPERE,
|
'mA': UnitOfElectricCurrent.MILLIAMPERE,
|
||||||
|
|||||||
@ -371,6 +371,19 @@ urn:miot-spec-v2:device:outlet:0000A002:cuco-cp2:2:
|
|||||||
urn:miot-spec-v2:device:outlet:0000A002:cuco-cp2d:1:
|
urn:miot-spec-v2:device:outlet:0000A002:cuco-cp2d:1:
|
||||||
prop.3.2:
|
prop.3.2:
|
||||||
unit: mA
|
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:
|
urn:miot-spec-v2:device:outlet:0000A002:cuco-v3:1:
|
||||||
prop.11.1:
|
prop.11.1:
|
||||||
format: float
|
format: float
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user