Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.guardian.binary_sensor Namespace Reference

Classes

class  PairedSensorBinarySensor
 
class  PairedSensorBinarySensorDescription
 
class  ValveControllerBinarySensor
 
class  ValveControllerBinarySensorDescription
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

string ATTR_CONNECTED_CLIENTS = "connected_clients"
 
tuple PAIRED_SENSOR_DESCRIPTIONS
 
string SENSOR_KIND_LEAK_DETECTED = "leak_detected"
 
string SENSOR_KIND_MOVED = "moved"
 
tuple VALVE_CONTROLLER_DESCRIPTIONS
 

Detailed Description

Binary sensors for the Elexa Guardian integration.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.guardian.binary_sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up Guardian switches based on a config entry.

Definition at line 88 of file binary_sensor.py.

Variable Documentation

◆ ATTR_CONNECTED_CLIENTS

string homeassistant.components.guardian.binary_sensor.ATTR_CONNECTED_CLIENTS = "connected_clients"

Definition at line 39 of file binary_sensor.py.

◆ PAIRED_SENSOR_DESCRIPTIONS

tuple homeassistant.components.guardian.binary_sensor.PAIRED_SENSOR_DESCRIPTIONS
Initial value:
1 = (
2  PairedSensorBinarySensorDescription(
3  key=SENSOR_KIND_LEAK_DETECTED,
4  translation_key="leak",
5  device_class=BinarySensorDeviceClass.MOISTURE,
6  is_on_fn=lambda data: data["wet"],
7  ),
8  PairedSensorBinarySensorDescription(
9  key=SENSOR_KIND_MOVED,
10  translation_key="moved",
11  device_class=BinarySensorDeviceClass.MOVING,
12  entity_category=EntityCategory.DIAGNOSTIC,
13  is_on_fn=lambda data: data["moved"],
14  ),
15 )

Definition at line 61 of file binary_sensor.py.

◆ SENSOR_KIND_LEAK_DETECTED

string homeassistant.components.guardian.binary_sensor.SENSOR_KIND_LEAK_DETECTED = "leak_detected"

Definition at line 41 of file binary_sensor.py.

◆ SENSOR_KIND_MOVED

string homeassistant.components.guardian.binary_sensor.SENSOR_KIND_MOVED = "moved"

Definition at line 42 of file binary_sensor.py.

◆ VALVE_CONTROLLER_DESCRIPTIONS

tuple homeassistant.components.guardian.binary_sensor.VALVE_CONTROLLER_DESCRIPTIONS
Initial value:
1 = (
2  ValveControllerBinarySensorDescription(
3  key=SENSOR_KIND_LEAK_DETECTED,
4  translation_key="leak",
5  device_class=BinarySensorDeviceClass.MOISTURE,
6  api_category=API_SYSTEM_ONBOARD_SENSOR_STATUS,
7  is_on_fn=lambda data: data["wet"],
8  ),
9 )

Definition at line 77 of file binary_sensor.py.