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

Classes

class  SIABinarySensor
 
class  SIABinarySensorConnectivity
 
class  SIABinarySensorEntityDescription
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry entry, AddEntitiesCallback async_add_entities)
 
Iterable[SIABinarySensorgenerate_binary_sensors (ConfigEntry entry)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 ENTITY_DESCRIPTION_CONNECTIVITY
 
 ENTITY_DESCRIPTION_MOISTURE
 
 ENTITY_DESCRIPTION_POWER
 
 ENTITY_DESCRIPTION_SMOKE
 

Detailed Description

Module for SIA Binary Sensors.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.sia.binary_sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Set up SIA binary sensors from a config entry.

Definition at line 105 of file binary_sensor.py.

◆ generate_binary_sensors()

Iterable[SIABinarySensor] homeassistant.components.sia.binary_sensor.generate_binary_sensors ( ConfigEntry  entry)
Generate binary sensors.

For each Account there is one power sensor with zone == 0.
For each Zone in each Account there is one smoke and one moisture sensor.

Definition at line 86 of file binary_sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.sia.binary_sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 33 of file binary_sensor.py.

◆ ENTITY_DESCRIPTION_CONNECTIVITY

homeassistant.components.sia.binary_sensor.ENTITY_DESCRIPTION_CONNECTIVITY
Initial value:
1 = SIABinarySensorEntityDescription(
2  key=KEY_CONNECTIVITY,
3  device_class=BinarySensorDeviceClass.CONNECTIVITY,
4  entity_category=EntityCategory.DIAGNOSTIC,
5  code_consequences={"RP": True},
6 )

Definition at line 78 of file binary_sensor.py.

◆ ENTITY_DESCRIPTION_MOISTURE

homeassistant.components.sia.binary_sensor.ENTITY_DESCRIPTION_MOISTURE
Initial value:
1 = SIABinarySensorEntityDescription(
2  key=KEY_MOISTURE,
3  device_class=BinarySensorDeviceClass.MOISTURE,
4  code_consequences={
5  "WA": True,
6  "WH": False,
7  },
8  entity_registry_enabled_default=False,
9 )

Definition at line 68 of file binary_sensor.py.

◆ ENTITY_DESCRIPTION_POWER

homeassistant.components.sia.binary_sensor.ENTITY_DESCRIPTION_POWER
Initial value:
1 = SIABinarySensorEntityDescription(
2  key=KEY_POWER,
3  device_class=BinarySensorDeviceClass.POWER,
4  entity_category=EntityCategory.DIAGNOSTIC,
5  code_consequences={
6  "AT": False,
7  "AR": True,
8  },
9 )

Definition at line 44 of file binary_sensor.py.

◆ ENTITY_DESCRIPTION_SMOKE

homeassistant.components.sia.binary_sensor.ENTITY_DESCRIPTION_SMOKE
Initial value:
1 = SIABinarySensorEntityDescription(
2  key=KEY_SMOKE,
3  device_class=BinarySensorDeviceClass.SMOKE,
4  code_consequences={
5  "GA": True,
6  "GH": False,
7  "FA": True,
8  "FH": False,
9  "KA": True,
10  "KH": False,
11  },
12  entity_registry_enabled_default=False,
13 )

Definition at line 54 of file binary_sensor.py.