Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.tradfri.fan Namespace Reference

Classes

class  TradfriAirPurifierFan
 

Functions

int _from_fan_percentage (int percentage)
 
int _from_fan_speed (int fan_speed)
 
None async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities)
 

Variables

string ATTR_AUTO = "Auto"
 
int ATTR_MAX_FAN_STEPS = 49
 

Detailed Description

Represent an air purifier.

Function Documentation

◆ _from_fan_percentage()

int homeassistant.components.tradfri.fan._from_fan_percentage ( int  percentage)
private
Convert percent to a value that the Tradfri API understands.

Definition at line 23 of file fan.py.

◆ _from_fan_speed()

int homeassistant.components.tradfri.fan._from_fan_speed ( int  fan_speed)
private
Convert the Tradfri API fan speed to a percentage value.

Definition at line 28 of file fan.py.

◆ async_setup_entry()

None homeassistant.components.tradfri.fan.async_setup_entry ( HomeAssistant  hass,
ConfigEntry  config_entry,
AddEntitiesCallback  async_add_entities 
)
Load Tradfri switches based on a config entry.

Definition at line 33 of file fan.py.

Variable Documentation

◆ ATTR_AUTO

string homeassistant.components.tradfri.fan.ATTR_AUTO = "Auto"

Definition at line 19 of file fan.py.

◆ ATTR_MAX_FAN_STEPS

int homeassistant.components.tradfri.fan.ATTR_MAX_FAN_STEPS = 49

Definition at line 20 of file fan.py.