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

Classes

class  EddystoneTemp
 
class  Monitor
 

Functions

str|None get_from_conf (dict[str, str] config, str config_key, int length)
 
None setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 BEACON_SCHEMA
 
string CONF_BEACONS = "beacons"
 
string CONF_BT_DEVICE_ID = "bt_device_id"
 
string CONF_INSTANCE = "instance"
 
string CONF_NAMESPACE = "namespace"
 
 PLATFORM_SCHEMA
 

Detailed Description

Read temperature information from Eddystone beacons.

Your beacons must be configured to transmit UID (for identification) and TLM
(for temperature) frames.

Function Documentation

◆ get_from_conf()

str | None homeassistant.components.eddystone_temperature.sensor.get_from_conf ( dict[str, str]  config,
str  config_key,
int  length 
)
Retrieve value from config and validate length.

Definition at line 98 of file sensor.py.

◆ setup_platform()

None homeassistant.components.eddystone_temperature.sensor.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Validate configuration, create devices and start monitoring thread.

Definition at line 54 of file sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 31 of file sensor.py.

◆ BEACON_SCHEMA

homeassistant.components.eddystone_temperature.sensor.BEACON_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_NAMESPACE): cv.string,
4  vol.Required(CONF_INSTANCE): cv.string,
5  vol.Optional(CONF_NAME): cv.string,
6  }
7 )

Definition at line 38 of file sensor.py.

◆ CONF_BEACONS

string homeassistant.components.eddystone_temperature.sensor.CONF_BEACONS = "beacons"

Definition at line 33 of file sensor.py.

◆ CONF_BT_DEVICE_ID

string homeassistant.components.eddystone_temperature.sensor.CONF_BT_DEVICE_ID = "bt_device_id"

Definition at line 34 of file sensor.py.

◆ CONF_INSTANCE

string homeassistant.components.eddystone_temperature.sensor.CONF_INSTANCE = "instance"

Definition at line 35 of file sensor.py.

◆ CONF_NAMESPACE

string homeassistant.components.eddystone_temperature.sensor.CONF_NAMESPACE = "namespace"

Definition at line 36 of file sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.eddystone_temperature.sensor.PLATFORM_SCHEMA
Initial value:
1 = SENSOR_PLATFORM_SCHEMA.extend(
2  {
3  vol.Optional(CONF_BT_DEVICE_ID, default=0): cv.positive_int,
4  vol.Required(CONF_BEACONS): vol.Schema({cv.string: BEACON_SCHEMA}),
5  }
6 )

Definition at line 46 of file sensor.py.