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

Classes

class  RfxtrxBinarySensor
 

Functions

None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 
bool supported (rfxtrxmod.RFXtrxEvent event)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
list SENSOR_STATUS_OFF
 
list SENSOR_STATUS_ON
 
tuple SENSOR_TYPES
 
dictionary SENSOR_TYPES_DICT = {desc.key: desc for desc in SENSOR_TYPES}
 

Detailed Description

Support for RFXtrx binary sensors.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.rfxtrx.binary_sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Set up config entry.

Definition at line 91 of file binary_sensor.py.

◆ supported()

bool homeassistant.components.rfxtrx.binary_sensor.supported ( rfxtrxmod.RFXtrxEvent  event)
Return whether an event supports binary_sensor.

Definition at line 79 of file binary_sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 32 of file binary_sensor.py.

◆ SENSOR_STATUS_OFF

list homeassistant.components.rfxtrx.binary_sensor.SENSOR_STATUS_OFF
Initial value:
1 = [
2  "End Panic",
3  "No Motion",
4  "No Motion Tamper",
5  "Dark Detected",
6  "Normal",
7  "Normal Tamper",
8 ]

Definition at line 44 of file binary_sensor.py.

◆ SENSOR_STATUS_ON

list homeassistant.components.rfxtrx.binary_sensor.SENSOR_STATUS_ON
Initial value:
1 = [
2  "Panic",
3  "Motion",
4  "Motion Tamper",
5  "Light Detected",
6  "Alarm",
7  "Alarm Tamper",
8 ]

Definition at line 35 of file binary_sensor.py.

◆ SENSOR_TYPES

tuple homeassistant.components.rfxtrx.binary_sensor.SENSOR_TYPES
Initial value:
1 = (
2  BinarySensorEntityDescription(
3  key="X10 Security Motion Detector",
4  device_class=BinarySensorDeviceClass.MOTION,
5  ),
6  BinarySensorEntityDescription(
7  key="KD101 Smoke Detector",
8  device_class=BinarySensorDeviceClass.SMOKE,
9  ),
10  BinarySensorEntityDescription(
11  key="Visonic Powercode Motion Detector",
12  device_class=BinarySensorDeviceClass.MOTION,
13  ),
14  BinarySensorEntityDescription(
15  key="Alecto SA30 Smoke Detector",
16  device_class=BinarySensorDeviceClass.SMOKE,
17  ),
18  BinarySensorEntityDescription(
19  key="RM174RF Smoke Detector",
20  device_class=BinarySensorDeviceClass.SMOKE,
21  ),
22 )

Definition at line 53 of file binary_sensor.py.

◆ SENSOR_TYPES_DICT

dictionary homeassistant.components.rfxtrx.binary_sensor.SENSOR_TYPES_DICT = {desc.key: desc for desc in SENSOR_TYPES}

Definition at line 76 of file binary_sensor.py.