11 static const char *
const TAG =
"ezo.sensor";
39 void dump_config()
override;
40 void update()
override;
44 void set_address(uint8_t
address);
47 void get_device_information();
49 this->device_infomation_callback_.add(std::move(callback));
61 this->slope_callback_.add(std::move(callback));
66 void set_t(
float value);
67 void set_tempcomp_value(
float temp);
68 void add_t_callback(std::function<
void(std::string)> &&callback) { this->t_callback_.add(std::move(callback)); }
71 void get_calibration();
72 void set_calibration_point_low(
float value);
73 void set_calibration_point_mid(
float value);
74 void set_calibration_point_high(
float value);
75 void set_calibration_generic(
float value);
76 void clear_calibration();
78 this->calibration_callback_.add(std::move(callback));
83 void set_led_state(
bool on);
87 void send_custom(
const std::string &to_send);
89 this->custom_callback_.add(std::move(callback));
107 uint32_t start_time_ = 0;
const float DATA
For components that import data from directly connected sensors like DHT.
EzoCommandType command_type
void add_led_state_callback(std::function< void(bool)> &&callback)
This class simplifies creating components that periodically check a state.
This class implements support for the EZO circuits in i2c mode.
void add_calibration_callback(std::function< void(std::string)> &&callback)
float get_setup_priority() const override
void add_slope_callback(std::function< void(std::string)> &&callback)
Implementation of SPI Controller mode.
void add_custom_callback(std::function< void(std::string)> &&callback)
void add_t_callback(std::function< void(std::string)> &&callback)
void add_device_infomation_callback(std::function< void(std::string)> &&callback)
Base-class for all sensors.
std::deque< std::unique_ptr< EzoCommand > > commands_
This Class provides the methods to read/write bytes from/to an i2c device.