25 if (res->humidity.has_value() && this->
humidity_ !=
nullptr)
27 if (res->temperature.has_value() && this->
temperature_ !=
nullptr)
29 if (res->pressure.has_value() && this->
pressure_ !=
nullptr)
31 if (res->acceleration.has_value() && this->
acceleration_ !=
nullptr)
33 if (res->acceleration_x.has_value() && this->
acceleration_x_ !=
nullptr)
35 if (res->acceleration_y.has_value() && this->
acceleration_y_ !=
nullptr)
37 if (res->acceleration_z.has_value() && this->
acceleration_z_ !=
nullptr)
41 if (res->tx_power.has_value() && this->
tx_power_ !=
nullptr)
void set_temperature(sensor::Sensor *temperature)
sensor::Sensor * acceleration_y_
const float DATA
For components that import data from directly connected sensors like DHT.
void set_address(uint64_t address)
sensor::Sensor * measurement_sequence_number_
sensor::Sensor * acceleration_
void set_humidity(sensor::Sensor *humidity)
void set_acceleration_x(sensor::Sensor *acceleration_x)
void set_acceleration(sensor::Sensor *acceleration)
void publish_state(float state)
Publish a new state to the front-end.
bool parse_device(const esp32_ble_tracker::ESPBTDevice &device) override
float get_setup_priority() const override
void set_battery_voltage(sensor::Sensor *battery_voltage)
void set_measurement_sequence_number(sensor::Sensor *measurement_sequence_number)
optional< RuuviParseResult > parse_ruuvi(const esp32_ble_tracker::ESPBTDevice &device)
uint64_t address_uint64() const
sensor::Sensor * battery_voltage_
void set_movement_counter(sensor::Sensor *movement_counter)
sensor::Sensor * tx_power_
void set_pressure(sensor::Sensor *pressure)
sensor::Sensor * acceleration_x_
void dump_config() override
sensor::Sensor * humidity_
void set_acceleration_y(sensor::Sensor *acceleration_y)
sensor::Sensor * temperature_
sensor::Sensor * movement_counter_
Implementation of SPI Controller mode.
void set_tx_power(sensor::Sensor *tx_power)
void set_acceleration_z(sensor::Sensor *acceleration_z)
Base-class for all sensors.
sensor::Sensor * pressure_
sensor::Sensor * acceleration_z_