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

Classes

class  ArwnSensor
 

Functions

str _slug (str name)
 
None async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None)
 
list[ArwnSensor]|None discover_sensors (str topic, dict[str, Any] payload)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string DATA_ARWN = "arwn"
 
string DOMAIN = "arwn"
 
string TOPIC = "arwn/#"
 

Detailed Description

Support for collecting data from the ARWN project.

Function Documentation

◆ _slug()

str homeassistant.components.arwn.sensor._slug ( str  name)
private

Definition at line 101 of file sensor.py.

◆ async_setup_platform()

None homeassistant.components.arwn.sensor.async_setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  async_add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the ARWN platform.

Definition at line 105 of file sensor.py.

◆ discover_sensors()

list[ArwnSensor] | None homeassistant.components.arwn.sensor.discover_sensors ( str  topic,
dict[str, Any]  payload 
)
Given a topic, dynamically create the right sensor type.

Async friendly.

Definition at line 25 of file sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 17 of file sensor.py.

◆ DATA_ARWN

string homeassistant.components.arwn.sensor.DATA_ARWN = "arwn"

Definition at line 21 of file sensor.py.

◆ DOMAIN

string homeassistant.components.arwn.sensor.DOMAIN = "arwn"

Definition at line 19 of file sensor.py.

◆ TOPIC

string homeassistant.components.arwn.sensor.TOPIC = "arwn/#"

Definition at line 22 of file sensor.py.