diff --git a/homeassistant/components/smartthings/sensor.py b/homeassistant/components/smartthings/sensor.py index f0240886913..e07424520d2 100644 --- a/homeassistant/components/smartthings/sensor.py +++ b/homeassistant/components/smartthings/sensor.py @@ -20,6 +20,7 @@ from homeassistant.const import ( TEMP_CELSIUS, TEMP_FAHRENHEIT, VOLT, + VOLUME_CUBIC_METERS, ) from . import SmartThingsEntity @@ -116,6 +117,12 @@ CAPABILITY_TO_SENSORS = { None, ) ], + Capability.gas_meter: [ + Map(Attribute.gas_meter, "Gas Meter", ENERGY_KILO_WATT_HOUR, None), + Map(Attribute.gas_meter_calorific, "Gas Meter Calorific", None, None), + Map(Attribute.gas_meter_time, "Gas Meter Time", None, DEVICE_CLASS_TIMESTAMP), + Map(Attribute.gas_meter_volume, "Gas Meter Volume", VOLUME_CUBIC_METERS, None), + ], Capability.illuminance_measurement: [ Map(Attribute.illuminance, "Illuminance", LIGHT_LUX, DEVICE_CLASS_ILLUMINANCE) ],