mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-04-12 04:32:46 +08:00
Merge branch 'XiaoMi:main' into main
This commit is contained in:
commit
b0d0d6b107
@ -399,6 +399,14 @@ SPEC_PROP_TRANS_MAP: dict[str, dict | str] = {
|
|||||||
'unit_of_measurement': UnitOfElectricPotential.VOLT
|
'unit_of_measurement': UnitOfElectricPotential.VOLT
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
'electric-current': {
|
||||||
|
'device_class': SensorDeviceClass.CURRENT,
|
||||||
|
'entity': 'sensor',
|
||||||
|
'optional': {
|
||||||
|
'state_class': SensorStateClass.MEASUREMENT,
|
||||||
|
'unit_of_measurement': UnitOfElectricCurrent.AMPERE
|
||||||
|
}
|
||||||
|
},
|
||||||
'illumination': {
|
'illumination': {
|
||||||
'device_class': SensorDeviceClass.ILLUMINANCE,
|
'device_class': SensorDeviceClass.ILLUMINANCE,
|
||||||
'entity': 'sensor'
|
'entity': 'sensor'
|
||||||
@ -415,12 +423,12 @@ SPEC_PROP_TRANS_MAP: dict[str, dict | str] = {
|
|||||||
'unit_of_measurement': UnitOfPower.WATT
|
'unit_of_measurement': UnitOfPower.WATT
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'electric-current': {
|
'surge-power': {
|
||||||
'device_class': SensorDeviceClass.CURRENT,
|
'device_class': SensorDeviceClass.POWER,
|
||||||
'entity': 'sensor',
|
'entity': 'sensor',
|
||||||
'optional': {
|
'optional': {
|
||||||
'state_class': SensorStateClass.MEASUREMENT,
|
'state_class': SensorStateClass.MEASUREMENT,
|
||||||
'unit_of_measurement': UnitOfElectricCurrent.AMPERE
|
'unit_of_measurement': UnitOfPower.WATT
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'power-consumption': {
|
'power-consumption': {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user