50template<
typename... Ts>
class ResetEnergyAction;
70 SUB_SENSOR(total_power)
77 SUB_SENSOR(total_energy)
84 void update()
override;
85 void setup()
override;
86 void dump_config()
override;
103 std::vector<ActionCallbackFuncPtr> action_queue_{};
virtual void loop()
This method will be called repeatedly.
Helper class to easily give an object a parent of type T.
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)
void play(const Ts &...x) override
Base-class for all sensors.
void(BL0906::*)() ActionCallbackFuncPtr
esphome::bl0906::BL0906 __attribute__