10namespace binary_sensor_map {
96 float bayesian_predicate_(
bool sensor_state,
float prior,
float prob_given_true,
float prob_given_false);
Base class for all binary_sensor-type classes.
Class to map one or more binary_sensors to one Sensor.
void set_bayesian_prior(float prior)
void add_channel(binary_sensor::BinarySensor *sensor, float value)
Add binary_sensors to the group when only one parameter is needed for the configured mapping type.
void dump_config() override
void set_sensor_type(BinarySensorMapType sensor_type)
BinarySensorMapType sensor_type_
float bayesian_predicate_(bool sensor_state, float prior, float prob_given_true, float prob_given_false)
Computes the Bayesian predicate for a specific observation If the sensor state is false,...
void loop() override
The loop calls the configured type processing method.
std::vector< BinarySensorMapChannel > channels_
void process_group_()
Methods to process the binary_sensor_maps types.
Base-class for all sensors.
@ BINARY_SENSOR_MAP_TYPE_SUM
@ BINARY_SENSOR_MAP_TYPE_GROUP
@ BINARY_SENSOR_MAP_TYPE_BAYESIAN
Providing packet encoding functions for exchanging data with a remote host.
struct esphome::binary_sensor_map::BinarySensorMapChannel::@13::@14 probabilities
binary_sensor::BinarySensor * binary_sensor
union esphome::binary_sensor_map::BinarySensorMapChannel::@13 parameters