Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.freedompro.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 STATE_CLASS_MAP
 
dictionary SUPPORTED_SENSORS = {"temperatureSensor", "humiditySensor", "lightSensor"}
 
dictionary UNIT_MAP
 

Detailed Description

Support for Freedompro sensor.

Function Documentation

◆ async_setup_entry()

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

Definition at line 43 of file sensor.py.

Variable Documentation

◆ DEVICE_CLASS_MAP

dictionary homeassistant.components.freedompro.sensor.DEVICE_CLASS_MAP
Initial value:
1 = {
2  "temperatureSensor": SensorDeviceClass.TEMPERATURE,
3  "humiditySensor": SensorDeviceClass.HUMIDITY,
4  "lightSensor": SensorDeviceClass.ILLUMINANCE,
5 }

Definition at line 20 of file sensor.py.

◆ DEVICE_KEY_MAP

dictionary homeassistant.components.freedompro.sensor.DEVICE_KEY_MAP
Initial value:
1 = {
2  "temperatureSensor": "currentTemperature",
3  "humiditySensor": "currentRelativeHumidity",
4  "lightSensor": "currentAmbientLightLevel",
5 }

Definition at line 35 of file sensor.py.

◆ STATE_CLASS_MAP

dictionary homeassistant.components.freedompro.sensor.STATE_CLASS_MAP
Initial value:
1 = {
2  "temperatureSensor": SensorStateClass.MEASUREMENT,
3  "humiditySensor": SensorStateClass.MEASUREMENT,
4  "lightSensor": None,
5 }

Definition at line 25 of file sensor.py.

◆ SUPPORTED_SENSORS

dictionary homeassistant.components.freedompro.sensor.SUPPORTED_SENSORS = {"temperatureSensor", "humiditySensor", "lightSensor"}

Definition at line 40 of file sensor.py.

◆ UNIT_MAP

dictionary homeassistant.components.freedompro.sensor.UNIT_MAP
Initial value:
1 = {
2  "temperatureSensor": UnitOfTemperature.CELSIUS,
3  "humiditySensor": PERCENTAGE,
4  "lightSensor": LIGHT_LUX,
5 }

Definition at line 30 of file sensor.py.