mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Add leak detectors support for Ambient Station (#83357)
This commit is contained in:
parent
7af18ac0ad
commit
31725d5411
@ -31,6 +31,10 @@ TYPE_BATT9 = "batt9"
|
|||||||
TYPE_BATTIN = "battin"
|
TYPE_BATTIN = "battin"
|
||||||
TYPE_BATTOUT = "battout"
|
TYPE_BATTOUT = "battout"
|
||||||
TYPE_BATT_CO2 = "batt_co2"
|
TYPE_BATT_CO2 = "batt_co2"
|
||||||
|
TYPE_BATT_LEAK1 = "batleak1"
|
||||||
|
TYPE_BATT_LEAK2 = "batleak2"
|
||||||
|
TYPE_BATT_LEAK3 = "batleak3"
|
||||||
|
TYPE_BATT_LEAK4 = "batleak4"
|
||||||
TYPE_BATT_LIGHTNING = "batt_lightning"
|
TYPE_BATT_LIGHTNING = "batt_lightning"
|
||||||
TYPE_BATT_SM1 = "battsm1"
|
TYPE_BATT_SM1 = "battsm1"
|
||||||
TYPE_BATT_SM10 = "battsm10"
|
TYPE_BATT_SM10 = "battsm10"
|
||||||
@ -42,6 +46,10 @@ TYPE_BATT_SM6 = "battsm6"
|
|||||||
TYPE_BATT_SM7 = "battsm7"
|
TYPE_BATT_SM7 = "battsm7"
|
||||||
TYPE_BATT_SM8 = "battsm8"
|
TYPE_BATT_SM8 = "battsm8"
|
||||||
TYPE_BATT_SM9 = "battsm9"
|
TYPE_BATT_SM9 = "battsm9"
|
||||||
|
TYPE_LEAK1 = "leak1"
|
||||||
|
TYPE_LEAK2 = "leak2"
|
||||||
|
TYPE_LEAK3 = "leak3"
|
||||||
|
TYPE_LEAK4 = "leak4"
|
||||||
TYPE_PM25IN_BATT = "batt_25in"
|
TYPE_PM25IN_BATT = "batt_25in"
|
||||||
TYPE_PM25_BATT = "batt_25"
|
TYPE_PM25_BATT = "batt_25"
|
||||||
TYPE_RELAY1 = "relay1"
|
TYPE_RELAY1 = "relay1"
|
||||||
@ -155,6 +163,34 @@ BINARY_SENSOR_DESCRIPTIONS = (
|
|||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
on_state=0,
|
on_state=0,
|
||||||
),
|
),
|
||||||
|
AmbientBinarySensorDescription(
|
||||||
|
key=TYPE_BATT_LEAK1,
|
||||||
|
name="Leak detector battery 1",
|
||||||
|
device_class=BinarySensorDeviceClass.BATTERY,
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
|
on_state=0,
|
||||||
|
),
|
||||||
|
AmbientBinarySensorDescription(
|
||||||
|
key=TYPE_BATT_LEAK2,
|
||||||
|
name="Leak detector battery 2",
|
||||||
|
device_class=BinarySensorDeviceClass.BATTERY,
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
|
on_state=0,
|
||||||
|
),
|
||||||
|
AmbientBinarySensorDescription(
|
||||||
|
key=TYPE_BATT_LEAK3,
|
||||||
|
name="Leak detector battery 3",
|
||||||
|
device_class=BinarySensorDeviceClass.BATTERY,
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
|
on_state=0,
|
||||||
|
),
|
||||||
|
AmbientBinarySensorDescription(
|
||||||
|
key=TYPE_BATT_LEAK4,
|
||||||
|
name="Leak detector battery 4",
|
||||||
|
device_class=BinarySensorDeviceClass.BATTERY,
|
||||||
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
|
on_state=0,
|
||||||
|
),
|
||||||
AmbientBinarySensorDescription(
|
AmbientBinarySensorDescription(
|
||||||
key=TYPE_BATT_SM1,
|
key=TYPE_BATT_SM1,
|
||||||
name="Soil monitor battery 1",
|
name="Soil monitor battery 1",
|
||||||
@ -239,6 +275,30 @@ BINARY_SENSOR_DESCRIPTIONS = (
|
|||||||
entity_category=EntityCategory.DIAGNOSTIC,
|
entity_category=EntityCategory.DIAGNOSTIC,
|
||||||
on_state=0,
|
on_state=0,
|
||||||
),
|
),
|
||||||
|
AmbientBinarySensorDescription(
|
||||||
|
key=TYPE_LEAK1,
|
||||||
|
name="Leak detector 1",
|
||||||
|
device_class=BinarySensorDeviceClass.MOISTURE,
|
||||||
|
on_state=1,
|
||||||
|
),
|
||||||
|
AmbientBinarySensorDescription(
|
||||||
|
key=TYPE_LEAK2,
|
||||||
|
name="Leak detector 2",
|
||||||
|
device_class=BinarySensorDeviceClass.MOISTURE,
|
||||||
|
on_state=1,
|
||||||
|
),
|
||||||
|
AmbientBinarySensorDescription(
|
||||||
|
key=TYPE_LEAK3,
|
||||||
|
name="Leak detector 3",
|
||||||
|
device_class=BinarySensorDeviceClass.MOISTURE,
|
||||||
|
on_state=1,
|
||||||
|
),
|
||||||
|
AmbientBinarySensorDescription(
|
||||||
|
key=TYPE_LEAK4,
|
||||||
|
name="Leak detector 4",
|
||||||
|
device_class=BinarySensorDeviceClass.MOISTURE,
|
||||||
|
on_state=1,
|
||||||
|
),
|
||||||
AmbientBinarySensorDescription(
|
AmbientBinarySensorDescription(
|
||||||
key=TYPE_PM25IN_BATT,
|
key=TYPE_PM25IN_BATT,
|
||||||
name="PM25 indoor battery",
|
name="PM25 indoor battery",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user