mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2025-04-04 00:35:33 +08:00
fix: cgllc.airmonitor.s1 unit ppb
This commit is contained in:
parent
651ed64ba2
commit
55bcc707ef
@ -130,10 +130,13 @@ urn:miot-spec-v2:device:outlet:0000A002:cuco-cp2:2:
|
|||||||
expr: round(src_value/10, 1)
|
expr: round(src_value/10, 1)
|
||||||
urn:miot-spec-v2:device:outlet:0000A002:cuco-cp2:1: urn:miot-spec-v2:device:outlet:0000A002:cuco-cp2:2
|
urn:miot-spec-v2:device:outlet:0000A002:cuco-cp2:1: urn:miot-spec-v2:device:outlet:0000A002:cuco-cp2:2
|
||||||
urn:miot-spec-v2:device:plant-monitor:0000A030:hhcc-v1:1:
|
urn:miot-spec-v2:device:plant-monitor:0000A030:hhcc-v1:1:
|
||||||
prop.2.1:
|
prop.2.1:
|
||||||
name: soil-moisture
|
name: soil-moisture
|
||||||
icon: mdi:watering-can
|
icon: mdi:watering-can
|
||||||
prop.2.2:
|
prop.2.2:
|
||||||
name: soil-ec
|
name: soil-ec
|
||||||
icon: mdi:sprout-outline
|
icon: mdi:sprout-outline
|
||||||
unit: μS/cm
|
unit: μS/cm
|
||||||
|
urn:miot-spec-v2:device:air-monitor:0000A008:cgllc-s1:1:
|
||||||
|
prop.2.5:
|
||||||
|
name: voc-density
|
||||||
|
@ -506,7 +506,11 @@ SPEC_PROP_TRANS_MAP: dict = {
|
|||||||
'entity': 'sensor',
|
'entity': 'sensor',
|
||||||
'state_class': SensorStateClass.MEASUREMENT
|
'state_class': SensorStateClass.MEASUREMENT
|
||||||
},
|
},
|
||||||
'voc-density': 'tvoc-density',
|
'voc-density': {
|
||||||
|
'device_class': SensorDeviceClass.VOLATILE_ORGANIC_COMPOUNDS_PARTS,
|
||||||
|
'entity': 'sensor',
|
||||||
|
'state_class': SensorStateClass.MEASUREMENT
|
||||||
|
},
|
||||||
'battery-level': {
|
'battery-level': {
|
||||||
'device_class': SensorDeviceClass.BATTERY,
|
'device_class': SensorDeviceClass.BATTERY,
|
||||||
'entity': 'sensor',
|
'entity': 'sensor',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user