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

Classes

class  ThermoworksSmokeSensor
 

Functions

None setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback add_entities, DiscoveryInfoType|None discovery_info=None)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string BATTERY_LEVEL = "battery"
 
list EXCLUDE_KEYS = [FIRMWARE]
 
string FIRMWARE = "firmware"
 
 PLATFORM_SCHEMA
 
string PROBE_1 = "probe1"
 
string PROBE_1_MAX = "probe1_max"
 
string PROBE_1_MIN = "probe1_min"
 
string PROBE_2 = "probe2"
 
string PROBE_2_MAX = "probe2_max"
 
string PROBE_2_MIN = "probe2_min"
 
dictionary SENSOR_TYPES
 
string SERIAL_REGEX = "^(?:[0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}$"
 

Detailed Description

Support for getting the state of a Thermoworks Smoke Thermometer.

Requires Smoke Gateway Wifi with an internet connection.

Function Documentation

◆ setup_platform()

None homeassistant.components.thermoworks_smoke.sensor.setup_platform ( HomeAssistant  hass,
ConfigType  config,
AddEntitiesCallback  add_entities,
DiscoveryInfoType | None   discovery_info = None 
)
Set up the thermoworks sensor.

Definition at line 74 of file sensor.py.

Variable Documentation

◆ _LOGGER

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

Definition at line 34 of file sensor.py.

◆ BATTERY_LEVEL

string homeassistant.components.thermoworks_smoke.sensor.BATTERY_LEVEL = "battery"

Definition at line 42 of file sensor.py.

◆ EXCLUDE_KEYS

list homeassistant.components.thermoworks_smoke.sensor.EXCLUDE_KEYS = [FIRMWARE]

Definition at line 58 of file sensor.py.

◆ FIRMWARE

string homeassistant.components.thermoworks_smoke.sensor.FIRMWARE = "firmware"

Definition at line 43 of file sensor.py.

◆ PLATFORM_SCHEMA

homeassistant.components.thermoworks_smoke.sensor.PLATFORM_SCHEMA
Initial value:
1 = SENSOR_PLATFORM_SCHEMA.extend(
2  {
3  vol.Required(CONF_EMAIL): cv.string,
4  vol.Required(CONF_PASSWORD): cv.string,
5  vol.Optional(CONF_MONITORED_CONDITIONS, default=[PROBE_1, PROBE_2]): vol.All(
6  cv.ensure_list, [vol.In(SENSOR_TYPES)]
7  ),
8  vol.Optional(CONF_EXCLUDE, default=[]): vol.All(
9  cv.ensure_list, [cv.matches_regex(SERIAL_REGEX)]
10  ),
11  }
12 )

Definition at line 60 of file sensor.py.

◆ PROBE_1

string homeassistant.components.thermoworks_smoke.sensor.PROBE_1 = "probe1"

Definition at line 36 of file sensor.py.

◆ PROBE_1_MAX

string homeassistant.components.thermoworks_smoke.sensor.PROBE_1_MAX = "probe1_max"

Definition at line 39 of file sensor.py.

◆ PROBE_1_MIN

string homeassistant.components.thermoworks_smoke.sensor.PROBE_1_MIN = "probe1_min"

Definition at line 38 of file sensor.py.

◆ PROBE_2

string homeassistant.components.thermoworks_smoke.sensor.PROBE_2 = "probe2"

Definition at line 37 of file sensor.py.

◆ PROBE_2_MAX

string homeassistant.components.thermoworks_smoke.sensor.PROBE_2_MAX = "probe2_max"

Definition at line 41 of file sensor.py.

◆ PROBE_2_MIN

string homeassistant.components.thermoworks_smoke.sensor.PROBE_2_MIN = "probe2_min"

Definition at line 40 of file sensor.py.

◆ SENSOR_TYPES

dictionary homeassistant.components.thermoworks_smoke.sensor.SENSOR_TYPES
Initial value:
1 = {
2  PROBE_1: "Probe 1",
3  PROBE_2: "Probe 2",
4  PROBE_1_MIN: "Probe 1 Min",
5  PROBE_1_MAX: "Probe 1 Max",
6  PROBE_2_MIN: "Probe 2 Min",
7  PROBE_2_MAX: "Probe 2 Max",
8 }

Definition at line 48 of file sensor.py.

◆ SERIAL_REGEX

string homeassistant.components.thermoworks_smoke.sensor.SERIAL_REGEX = "^(?:[0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}$"

Definition at line 45 of file sensor.py.