Support gas meter capability for smartthings (#41310)
parent
65b2ef659e
commit
61475cf090
|
@ -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)
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue