7#ifdef USE_BINARY_SENSOR
73 SUB_SENSOR(current_volume_dosed)
74 SUB_SENSOR(total_volume_dosed)
75 SUB_SENSOR(absolute_total_volume_dosed)
76 SUB_SENSOR(pump_voltage)
77 SUB_SENSOR(max_flow_rate)
78 SUB_SENSOR(last_volume_requested)
82#ifdef USE_BINARY_SENSOR
83 SUB_BINARY_SENSOR(is_dosing)
84 SUB_BINARY_SENSOR(is_paused)
89 SUB_TEXT_SENSOR(dosing_mode)
90 SUB_TEXT_SENSOR(calibration_status)
This class simplifies creating components that periodically check a state.
void exec_arbitrary_command(const std::basic_string< char > &command)
void dose_volume(double volume)
void send_next_command_()
uint16_t current_command_
int next_command_duration_queue_[10]
int next_command_duration_
uint16_t next_command_queue_[10]
void clear_total_volume_dosed()
std::string arbitrary_command_
void dump_config() override
double next_command_volume_
double next_command_volume_queue_[10]
int next_command_queue_last_
int next_command_queue_length_
void set_calibration_volume(double volume)
void change_i2c_address(int address)
void queue_command_(uint16_t command, double volume, int duration, bool should_schedule)
void dose_volume_over_time(double volume, int duration)
void read_command_result_()
uint16_t peek_next_command_()
void dose_with_constant_flow_rate(double volume, int duration)
void clear_current_command_()
int next_command_queue_head_
This Class provides the methods to read/write bytes from/to an i2c device.