Support gas meter capability for smartthings (#41310)
parent
65b2ef659e
commit
61475cf090
|
@ -20,6 +20,7 @@ from homeassistant.const import (
|
||||||
TEMP_CELSIUS,
|
TEMP_CELSIUS,
|
||||||
TEMP_FAHRENHEIT,
|
TEMP_FAHRENHEIT,
|
||||||
VOLT,
|
VOLT,
|
||||||
|
VOLUME_CUBIC_METERS,
|
||||||
)
|
)
|
||||||
|
|
||||||
from . import SmartThingsEntity
|
from . import SmartThingsEntity
|
||||||
|
@ -116,6 +117,12 @@ CAPABILITY_TO_SENSORS = {
|
||||||
None,
|
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: [
|
Capability.illuminance_measurement: [
|
||||||
Map(Attribute.illuminance, "Illuminance", LIGHT_LUX, DEVICE_CLASS_ILLUMINANCE)
|
Map(Attribute.illuminance, "Illuminance", LIGHT_LUX, DEVICE_CLASS_ILLUMINANCE)
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue