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

Classes

class  SmartTubPrimaryFiltrationCycle
 
class  SmartTubSecondaryFiltrationCycle
 
class  SmartTubSensor
 

Functions

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

Variables

string ATTR_CYCLE_LAST_UPDATED = "cycle_last_updated"
 
string ATTR_DURATION = "duration"
 
string ATTR_MODE = "mode"
 
string ATTR_START_HOUR = "start_hour"
 
 SET_PRIMARY_FILTRATION_SCHEMA
 
 VolDictType
 

Detailed Description

Platform for sensor integration.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.smarttub.sensor.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  entry,
AddEntitiesCallback   async_add_entities 
)
Set up sensor entities for the sensors in the tub.

Definition at line 45 of file sensor.py.

Variable Documentation

◆ ATTR_CYCLE_LAST_UPDATED

string homeassistant.components.smarttub.sensor.ATTR_CYCLE_LAST_UPDATED = "cycle_last_updated"

Definition at line 20 of file sensor.py.

◆ ATTR_DURATION

string homeassistant.components.smarttub.sensor.ATTR_DURATION = "duration"

Definition at line 19 of file sensor.py.

◆ ATTR_MODE

string homeassistant.components.smarttub.sensor.ATTR_MODE = "mode"

Definition at line 21 of file sensor.py.

◆ ATTR_START_HOUR

string homeassistant.components.smarttub.sensor.ATTR_START_HOUR = "start_hour"

Definition at line 23 of file sensor.py.

◆ SET_PRIMARY_FILTRATION_SCHEMA

homeassistant.components.smarttub.sensor.SET_PRIMARY_FILTRATION_SCHEMA
Initial value:
1 = vol.All(
2  cv.has_at_least_one_key(ATTR_DURATION, ATTR_START_HOUR),
3  cv.make_entity_service_schema(
4  {
5  vol.Optional(ATTR_DURATION): vol.All(int, vol.Range(min=1, max=24)),
6  vol.Optional(ATTR_START_HOUR): vol.All(int, vol.Range(min=0, max=23)),
7  },
8  ),
9 )

Definition at line 25 of file sensor.py.

◆ VolDictType

homeassistant.components.smarttub.sensor.VolDictType

Definition at line 35 of file sensor.py.