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

Classes

class  Device
 

Functions

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

Variables

dictionary DEVICE_CLASS_MAP
 
dictionary DEVICE_KEY_MAP
 
dictionary SUPPORTED_SENSORS = {"smokeSensor", "occupancySensor", "motionSensor", "contactSensor"}
 

Detailed Description

Support for Freedompro binary_sensor.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.freedompro.binary_sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up Freedompro binary_sensor.

Definition at line 35 of file binary_sensor.py.

Variable Documentation

◆ DEVICE_CLASS_MAP

dictionary homeassistant.components.freedompro.binary_sensor.DEVICE_CLASS_MAP
Initial value:
1 = {
2  "smokeSensor": BinarySensorDeviceClass.SMOKE,
3  "occupancySensor": BinarySensorDeviceClass.OCCUPANCY,
4  "motionSensor": BinarySensorDeviceClass.MOTION,
5  "contactSensor": BinarySensorDeviceClass.OPENING,
6 }

Definition at line 18 of file binary_sensor.py.

◆ DEVICE_KEY_MAP

dictionary homeassistant.components.freedompro.binary_sensor.DEVICE_KEY_MAP
Initial value:
1 = {
2  "smokeSensor": "smokeDetected",
3  "occupancySensor": "occupancyDetected",
4  "motionSensor": "motionDetected",
5  "contactSensor": "contactSensorState",
6 }

Definition at line 25 of file binary_sensor.py.

◆ SUPPORTED_SENSORS

dictionary homeassistant.components.freedompro.binary_sensor.SUPPORTED_SENSORS = {"smokeSensor", "occupancySensor", "motionSensor", "contactSensor"}

Definition at line 32 of file binary_sensor.py.