fix: cgllc.airmonitor.s1 unit ppb

This commit is contained in:
LiShuzhen 2025-03-25 10:58:33 +08:00
parent 651ed64ba2
commit 55bcc707ef
2 changed files with 15 additions and 8 deletions

View File

@ -137,3 +137,6 @@ urn:miot-spec-v2:device:plant-monitor:0000A030:hhcc-v1:1:
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

View File

@ -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',