Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.tado.sensor Namespace Reference

Classes

class  TadoHomeSensor
 
class  TadoSensorEntityDescription
 
class  TadoZoneSensor
 

Functions

None async_setup_entry (HomeAssistant hass, TadoConfigEntry entry, AddEntitiesCallback async_add_entities)
 
str format_condition (str condition)
 
bool get_automatic_geofencing (dict[str, str] data)
 
str get_geofencing_mode (dict[str, str] data)
 
str|None get_tado_mode (dict[str, str] data)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 AC_ENTITY_DESCRIPTION
 
 HEATING_ENTITY_DESCRIPTION
 
list HOME_SENSORS
 
 HUMIDITY_ENTITY_DESCRIPTION
 
 TADO_MODE_ENTITY_DESCRIPTION
 
 TEMPERATURE_ENTITY_DESCRIPTION
 
dictionary ZONE_SENSORS
 

Detailed Description

Support for Tado sensors for each zone.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.tado.sensor.async_setup_entry ( HomeAssistant  hass,
TadoConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up the Tado sensor platform.

Definition at line 195 of file sensor.py.

◆ format_condition()

str homeassistant.components.tado.sensor.format_condition ( str  condition)
Return condition from dict CONDITIONS_MAP.

Definition at line 48 of file sensor.py.

◆ get_automatic_geofencing()

bool homeassistant.components.tado.sensor.get_automatic_geofencing ( dict[str, str]  data)
Return whether Automatic Geofencing is enabled based on Presence Locked attribute.

Definition at line 63 of file sensor.py.

◆ get_geofencing_mode()

str homeassistant.components.tado.sensor.get_geofencing_mode ( dict[str, str]  data)
Return Geofencing Mode based on Presence and Presence Locked attributes.

Definition at line 72 of file sensor.py.

◆ get_tado_mode()

str | None homeassistant.components.tado.sensor.get_tado_mode ( dict[str, str]  data)
Return Tado Mode based on Presence attribute.

Definition at line 56 of file sensor.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.tado.sensor._LOGGER = logging.getLogger(__name__)
private

Definition at line 35 of file sensor.py.

◆ AC_ENTITY_DESCRIPTION

homeassistant.components.tado.sensor.AC_ENTITY_DESCRIPTION
Initial value:
1 = TadoSensorEntityDescription(
2  key="ac",
3  translation_key="ac",
4  name="AC",
5  state_fn=lambda data: data.ac_power,
6  attributes_fn=lambda data: {"time": data.ac_power_timestamp},
7 )

Definition at line 170 of file sensor.py.

◆ HEATING_ENTITY_DESCRIPTION

homeassistant.components.tado.sensor.HEATING_ENTITY_DESCRIPTION
Initial value:
1 = TadoSensorEntityDescription(
2  key="heating",
3  translation_key="heating",
4  state_fn=lambda data: data.heating_power_percentage,
5  attributes_fn=lambda data: {"time": data.heating_power_timestamp},
6  native_unit_of_measurement=PERCENTAGE,
7  state_class=SensorStateClass.MEASUREMENT,
8 )

Definition at line 162 of file sensor.py.

◆ HOME_SENSORS

list homeassistant.components.tado.sensor.HOME_SENSORS

Definition at line 87 of file sensor.py.

◆ HUMIDITY_ENTITY_DESCRIPTION

homeassistant.components.tado.sensor.HUMIDITY_ENTITY_DESCRIPTION
Initial value:
1 = TadoSensorEntityDescription(
2  key="humidity",
3  state_fn=lambda data: data.current_humidity,
4  attributes_fn=lambda data: {"time": data.current_humidity_timestamp},
5  native_unit_of_measurement=PERCENTAGE,
6  device_class=SensorDeviceClass.HUMIDITY,
7  state_class=SensorStateClass.MEASUREMENT,
8 )

Definition at line 149 of file sensor.py.

◆ TADO_MODE_ENTITY_DESCRIPTION

homeassistant.components.tado.sensor.TADO_MODE_ENTITY_DESCRIPTION
Initial value:
1 = TadoSensorEntityDescription(
2  key="tado mode",
3  translation_key="tado_mode",
4  state_fn=lambda data: data.tado_mode,
5 )

Definition at line 157 of file sensor.py.

◆ TEMPERATURE_ENTITY_DESCRIPTION

homeassistant.components.tado.sensor.TEMPERATURE_ENTITY_DESCRIPTION
Initial value:
1 = TadoSensorEntityDescription(
2  key="temperature",
3  state_fn=lambda data: data.current_temp,
4  attributes_fn=lambda data: {
5  "time": data.current_temp_timestamp,
6  "setting": 0, # setting is used in climate device
7  },
8  native_unit_of_measurement=UnitOfTemperature.CELSIUS,
9  device_class=SensorDeviceClass.TEMPERATURE,
10  state_class=SensorStateClass.MEASUREMENT,
11 )

Definition at line 138 of file sensor.py.

◆ ZONE_SENSORS

dictionary homeassistant.components.tado.sensor.ZONE_SENSORS
Initial value:
1 = {
2  TYPE_HEATING: [
3  TEMPERATURE_ENTITY_DESCRIPTION,
4  HUMIDITY_ENTITY_DESCRIPTION,
5  TADO_MODE_ENTITY_DESCRIPTION,
6  HEATING_ENTITY_DESCRIPTION,
7  ],
8  TYPE_AIR_CONDITIONING: [
9  TEMPERATURE_ENTITY_DESCRIPTION,
10  HUMIDITY_ENTITY_DESCRIPTION,
11  TADO_MODE_ENTITY_DESCRIPTION,
12  AC_ENTITY_DESCRIPTION,
13  ],
14  TYPE_HOT_WATER: [TADO_MODE_ENTITY_DESCRIPTION],
15 }

Definition at line 178 of file sensor.py.