67 SUB_SENSOR(total_power)
74 SUB_SENSOR(total_energy)
81 void update()
override;
82 void setup()
override;
83 void dump_config()
override;
101 std::vector<ActionCallbackFuncPtr> action_queue_{};
virtual void loop()
This method will be called repeatedly.
This class simplifies creating components that periodically check a state.
void read_data_(uint8_t address, float reference, sensor::Sensor *sensor)
BL0906Stage current_stage_
void bias_correction_(uint8_t address, float measurements, float correction)
size_t enqueue_action_(ActionCallbackFuncPtr function)
Base-class for all sensors.
void(BL0906::*)() ActionCallbackFuncPtr
esphome::bl0906::BL0906 __attribute__