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

Classes

class  SwitchbotRSSISensor
 
class  SwitchBotSensor
 

Functions

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

Variables

 coordinator = entry.runtime_data
 
 device_class
 
list entities
 
 entity_category
 
 entity_registry_enabled_default
 
 key
 
 name
 
 native_unit_of_measurement
 
int PARALLEL_UPDATES = 0
 
 state_class
 
 translation_key
 

Detailed Description

Support for SwitchBot sensors.

Function Documentation

◆ async_setup_entry()

None homeassistant.components.switchbot.sensor.async_setup_entry ( HomeAssistant  hass,
SwitchbotConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)

Definition at line 88 of file sensor.py.

Variable Documentation

◆ coordinator

homeassistant.components.switchbot.sensor.coordinator = entry.runtime_data
Set up Switchbot sensor based on a config entry.

Definition at line 94 of file sensor.py.

◆ device_class

homeassistant.components.switchbot.sensor.device_class

Definition at line 33 of file sensor.py.

◆ entities

list homeassistant.components.switchbot.sensor.entities
Initial value:
1 = [
2  SwitchBotSensor(coordinator, sensor)
3  for sensor in coordinator.device.parsed_data
4  if sensor in SENSOR_TYPES
5  ]

Definition at line 95 of file sensor.py.

◆ entity_category

homeassistant.components.switchbot.sensor.entity_category

Definition at line 36 of file sensor.py.

◆ entity_registry_enabled_default

homeassistant.components.switchbot.sensor.entity_registry_enabled_default

Definition at line 35 of file sensor.py.

◆ key

homeassistant.components.switchbot.sensor.key

Definition at line 30 of file sensor.py.

◆ name

homeassistant.components.switchbot.sensor.name

Definition at line 74 of file sensor.py.

◆ native_unit_of_measurement

homeassistant.components.switchbot.sensor.native_unit_of_measurement

Definition at line 32 of file sensor.py.

◆ PARALLEL_UPDATES

int homeassistant.components.switchbot.sensor.PARALLEL_UPDATES = 0

Definition at line 26 of file sensor.py.

◆ state_class

homeassistant.components.switchbot.sensor.state_class

Definition at line 34 of file sensor.py.

◆ translation_key

homeassistant.components.switchbot.sensor.translation_key

Definition at line 31 of file sensor.py.