From d52c382d51687631552cfb3db6a8707e2c90c096 Mon Sep 17 00:00:00 2001 From: lhy Date: Sun, 30 Jul 2023 00:15:18 +0900 Subject: [PATCH 1/2] Add veryFineDustSensor Capability https://developer.smartthings.com/docs/devices/capabilities/capabilities-reference/#veryFineDustSensor It indicates the level of very-fine dust (PM1.0) in air monitors, air purifiers, and air conditioners. --- pysmartthings/capability.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pysmartthings/capability.py b/pysmartthings/capability.py index b410d85..a3ab92d 100644 --- a/pysmartthings/capability.py +++ b/pysmartthings/capability.py @@ -238,6 +238,7 @@ class Capability: tvoc_measurement = "tvocMeasurement" ultraviolet_index = "ultravioletIndex" valve = "valve" + very_fine_dust_sensor = "veryFineDustSensor" voltage_measurement = "voltageMeasurement" washer_mode = "washerMode" washer_operating_state = "washerOperatingState" @@ -368,6 +369,7 @@ class Attribute: tvoc_level = "tvocLevel" ultraviolet_index = "ultravioletIndex" valve = "valve" + very_fine_dust_level = "veryFineDustLevel" vid = "vid" voltage = "voltage" volume = "volume" From fe4ef3fce4fe07125bc7c7f0afd9e4b8187b4b68 Mon Sep 17 00:00:00 2001 From: lhy Date: Tue, 19 Sep 2023 12:14:12 +0900 Subject: [PATCH 2/2] Added "veryFineDustSensor" item missing from CAPABILITIES_TO_ATTRIBUTES Help from @baawiki --- pysmartthings/capability.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pysmartthings/capability.py b/pysmartthings/capability.py index a3ab92d..e62b1d6 100644 --- a/pysmartthings/capability.py +++ b/pysmartthings/capability.py @@ -137,6 +137,7 @@ "tvocMeasurement": ["tvocLevel"], "ultravioletIndex": ["ultravioletIndex"], "valve": ["valve"], + "veryFineDustSensor": ["veryFineDustLevel"], "voltageMeasurement": ["voltage"], "washerMode": ["washerMode"], "washerOperatingState": [