|
| None | __init__ (self, HomeAssistant hass, str source_entity_id, str name, str|None unique_id, str state_characteristic, int|None samples_max_buffer_size, timedelta|None samples_max_age, bool samples_keep_last, int precision, int percentile) |
| |
| None | async_added_to_hass (self) |
| |
| CALLBACK_TYPE | async_start_preview (self, Callable[[str, Mapping[str, Any]], None] preview_callback) |
| |
| None | async_update (self) |
| |
| None | add_to_platform_start (self, HomeAssistant hass, EntityPlatform platform, asyncio.Semaphore|None parallel_updates) |
| |
| None | async_internal_added_to_hass (self) |
| |
| None | async_registry_entry_updated (self) |
| |
| dict[str, Any]|None | capability_attributes (self) |
| |
| SensorDeviceClass|None | device_class (self) |
| |
| er.EntityOptionsType|None | get_initial_entity_options (self) |
| |
| datetime|None | last_reset (self) |
| |
| str|None | native_unit_of_measurement (self) |
| |
| StateType|date|datetime|Decimal | native_value (self) |
| |
| list[str]|None | options (self) |
| |
| Any | state (self) |
| |
| dict[str, Any]|None | state_attributes (self) |
| |
| SensorStateClass|str|None | state_class (self) |
| |
| int|None | suggested_display_precision (self) |
| |
| str|None | suggested_unit_of_measurement (self) |
| |
| str|None | unit_of_measurement (self) |
| |
| None | __init_subclass__ (cls, **Any kwargs) |
| |
| str | __repr__ (self) |
| |
| None | add_to_platform_abort (self) |
| |
| None | add_to_platform_finish (self) |
| |
| bool | assumed_state (self) |
| |
| None | async_device_update (self, bool warning=True) |
| |
| None | async_internal_will_remove_from_hass (self) |
| |
| None | async_on_remove (self, CALLBACK_TYPE func) |
| |
| None | async_remove (self, *bool force_remove=False) |
| |
| None | async_removed_from_registry (self) |
| |
| None | async_schedule_update_ha_state (self, bool force_refresh=False) |
| |
| None | async_set_context (self, Context context) |
| |
| None | async_update_ha_state (self, bool force_refresh=False) |
| |
| None | async_will_remove_from_hass (self) |
| |
| None | async_write_ha_state (self) |
| |
| str|None | attribution (self) |
| |
| bool | available (self) |
| |
| DeviceInfo|None | device_info (self) |
| |
| bool | enabled (self) |
| |
| EntityCategory|None | entity_category (self) |
| |
| str|None | entity_picture (self) |
| |
| bool | entity_registry_enabled_default (self) |
| |
| bool | entity_registry_visible_default (self) |
| |
| Mapping[str, Any]|None | extra_state_attributes (self) |
| |
| bool | force_update (self) |
| |
| HassJobType | get_hassjob_type (self, str function_name) |
| |
| bool | has_entity_name (self) |
| |
| str|None | icon (self) |
| |
| str|UndefinedType|None | name (self) |
| |
| None | schedule_update_ha_state (self, bool force_refresh=False) |
| |
| bool | should_poll (self) |
| |
| str|None | suggested_object_id (self) |
| |
| int|None | supported_features (self) |
| |
| str|None | translation_key (self) |
| |
| Mapping[str, str] | translation_placeholders (self) |
| |
| str|None | unique_id (self) |
| |
| bool | use_device_name (self) |
| |
| None | __init__ (cls, str name, tuple[type,...] bases, dict[Any, Any] namespace, **Any kwargs) |
| |
| Any | __new__ (mcs, str name, tuple[type,...] bases, dict[Any, Any] namespace, set[str]|None cached_properties=None, **Any kwargs) |
| |
|
| None | _add_state_to_queue (self, State new_state) |
| |
| None | _async_cancel_update_listener (self) |
| |
| None | _async_handle_new_state (self, State|None reported_state) |
| |
| datetime|None | _async_next_to_purge_timestamp (self) |
| |
| None | _async_purge_update_and_schedule (self) |
| |
| None | _async_scheduled_update (self, datetime now) |
| |
| None | _async_stats_sensor_startup (self) |
| |
| None | _async_stats_sensor_state_change_listener (self, Event[EventStateChangedData] event) |
| |
| None | _async_stats_sensor_state_report_listener (self, Event[EventStateReportedData] event) |
| |
| SensorDeviceClass|None | _calculate_device_class (self, State new_state, str|None unit) |
| |
| None | _calculate_state_attributes (self, State new_state) |
| |
| SensorStateClass|None | _calculate_state_class (self, State new_state) |
| |
| str|None | _calculate_unit_of_measurement (self, State new_state) |
| |
| Callable[[], float|int|datetime|None] | _callable_characteristic_fn (self, str characteristic) |
| |
| list[State] | _fetch_states_from_database (self) |
| |
| None | _initialize_from_database (self) |
| |
| None | _purge_old_states (self, timedelta max_age) |
| |
| StateType | _stat_average_linear (self) |
| |
| StateType | _stat_average_step (self) |
| |
| StateType | _stat_average_timeless (self) |
| |
| StateType | _stat_binary_average_step (self) |
| |
| StateType | _stat_binary_average_timeless (self) |
| |
| StateType | _stat_binary_count (self) |
| |
| StateType | _stat_binary_count_off (self) |
| |
| StateType | _stat_binary_count_on (self) |
| |
| datetime|None | _stat_binary_datetime_newest (self) |
| |
| datetime|None | _stat_binary_datetime_oldest (self) |
| |
| StateType | _stat_binary_mean (self) |
| |
| StateType | _stat_change (self) |
| |
| StateType | _stat_change_sample (self) |
| |
| StateType | _stat_change_second (self) |
| |
| StateType | _stat_count (self) |
| |
| datetime|None | _stat_datetime_newest (self) |
| |
| datetime|None | _stat_datetime_oldest (self) |
| |
| datetime|None | _stat_datetime_value_max (self) |
| |
| datetime|None | _stat_datetime_value_min (self) |
| |
| StateType | _stat_distance_95_percent_of_values (self) |
| |
| StateType | _stat_distance_99_percent_of_values (self) |
| |
| StateType | _stat_distance_absolute (self) |
| |
| StateType | _stat_mean (self) |
| |
| StateType | _stat_mean_circular (self) |
| |
| StateType | _stat_median (self) |
| |
| StateType | _stat_noisiness (self) |
| |
| StateType | _stat_percentile (self) |
| |
| StateType | _stat_standard_deviation (self) |
| |
| StateType | _stat_sum (self) |
| |
| StateType | _stat_sum_differences (self) |
| |
| StateType | _stat_sum_differences_nonnegative (self) |
| |
| StateType | _stat_total (self) |
| |
| StateType | _stat_value_max (self) |
| |
| StateType | _stat_value_min (self) |
| |
| StateType | _stat_variance (self) |
| |
| None | _update_extra_state_attributes (self) |
| |
| None | _update_value (self) |
| |
Representation of a Statistics sensor.
Definition at line 327 of file sensor.py.