Skip to content

Commit

Permalink
Add silence sensor to Aqara smart natural gas detector JT-BZ-01AQ/A #…
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Dec 25, 2024
1 parent ba624a4 commit 004be2a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,10 +996,11 @@
"lumi.sensor_gas.acn02": ["Aqara", "Gas Sensor", "JT-BZ-01AQ/A"],
"spec": [
MapConv("status", "sensor", mi="2.p.1", map={0: "Normal Monitoring", 1: "Alarm", 2: "Fault", 3: "Warm Up", 4: "End Of Life"}),
BoolConv("fault", "binary_sensor", mi="2.p.2"), # diagnostic
BaseConv("gas_density", "sensor", mi="2.p.3"), # percentage
MapConv("sensitivity", "select", mi="5.p.1", map={1: "LEL15", 2: "LEL10"}), # config
BaseConv("remain_days", "sensor", mi="9.p.1"),
MapConv("sensitivity", "select", mi="5.p.1", map={1: "LEL15", 2: "LEL10"}, entity=ENTITY_CONFIG), # config
BoolConv("fault", "binary_sensor", mi="2.p.2", entity=ENTITY_DIAGNOSTIC), # diagnostic
BoolConv("silence", "binary_sensor", mi="7.p.1", entity=ENTITY_DIAGNOSTIC),
BaseConv("remain_days", "sensor", mi="9.p.1", entity=ENTITY_DIAGNOSTIC),
],
}, {
"lumi.light.acn014": ["Aqara", "Bulb T1", "ZNLDP14LM"],
Expand Down

0 comments on commit 004be2a

Please sign in to comment.