Classes | |
| class | ThresholdSensor |
Functions | |
| str | _threshold_type (float|None lower, float|None upper) |
| None | async_setup_entry (HomeAssistant hass, ConfigEntry config_entry, AddEntitiesCallback async_add_entities) |
| None | async_setup_platform (HomeAssistant hass, ConfigType config, AddEntitiesCallback async_add_entities, DiscoveryInfoType|None discovery_info=None) |
| dict | no_missing_threshold (dict value) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| Final | |
| PLATFORM_SCHEMA | |
Support for monitoring if a sensor value is below/above a threshold.
|
private |
Return the type of threshold this sensor represents.
Definition at line 152 of file binary_sensor.py.
| None homeassistant.components.threshold.binary_sensor.async_setup_entry | ( | HomeAssistant | hass, |
| ConfigEntry | config_entry, | ||
| AddEntitiesCallback | async_add_entities | ||
| ) |
Initialize threshold config entry.
Definition at line 90 of file binary_sensor.py.
| None homeassistant.components.threshold.binary_sensor.async_setup_platform | ( | HomeAssistant | hass, |
| ConfigType | config, | ||
| AddEntitiesCallback | async_add_entities, | ||
| DiscoveryInfoType | None | discovery_info = None |
||
| ) |
Set up the Threshold sensor.
Definition at line 129 of file binary_sensor.py.
| dict homeassistant.components.threshold.binary_sensor.no_missing_threshold | ( | dict | value | ) |
Validate data point list is greater than polynomial degrees.
Definition at line 65 of file binary_sensor.py.
|
private |
Definition at line 60 of file binary_sensor.py.
| homeassistant.components.threshold.binary_sensor.Final |
Definition at line 62 of file binary_sensor.py.
| homeassistant.components.threshold.binary_sensor.PLATFORM_SCHEMA |
Definition at line 73 of file binary_sensor.py.