11static const char *
const TAG =
"ezo.sensor";
66 void set_t(
float value);
This class simplifies creating components that periodically check a state.
This class implements support for the EZO circuits in i2c mode.
void set_led_state(bool on)
void add_calibration_callback(std::function< void(std::string)> &&callback)
void add_custom_callback(std::function< void(std::string)> &&callback)
void add_slope_callback(std::function< void(std::string)> &&callback)
void add_t_callback(std::function< void(std::string)> &&callback)
void set_address(uint8_t address)
CallbackManager< void(std::string)> calibration_callback_
void add_led_state_callback(std::function< void(bool)> &&callback)
void set_calibration_point_mid(float value)
void set_calibration_point_high(float value)
void set_calibration_point_low(float value)
CallbackManager< void(bool)> led_callback_
void set_calibration_generic(float value)
void set_tempcomp_value(float temp)
void get_device_information()
CallbackManager< void(std::string)> device_infomation_callback_
void add_device_infomation_callback(std::function< void(std::string)> &&callback)
float get_setup_priority() const override
CallbackManager< void(std::string)> t_callback_
void set_calibration_point_(EzoCalibrationType type, float value)
CallbackManager< void(std::string)> slope_callback_
std::deque< std::unique_ptr< EzoCommand > > commands_
void send_custom(const std::string &to_send)
void add_command_(const std::string &command, EzoCommandType command_type, uint16_t delay_ms=300)
CallbackManager< void(std::string)> custom_callback_
void dump_config() override
EzoCommandType command_type
This Class provides the methods to read/write bytes from/to an i2c device.
Base-class for all sensors.
const float DATA
For components that import data from directly connected sensors like DHT.
Providing packet encoding functions for exchanging data with a remote host.