35template<
typename... Ts>
class ResetEnergyAction;
55 SUB_SENSOR(total_power)
62 SUB_SENSOR(total_energy)
69 void update()
override;
70 void setup()
override;
71 void dump_config()
override;
87 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)
void bias_correction_(uint8_t address, float measurements, float correction)
size_t enqueue_action_(ActionCallbackFuncPtr function)
void play(Ts... x) override
Base-class for all sensors.
void(BL0906::*)() ActionCallbackFuncPtr
esphome::bl0906::BL0906 __attribute__
Providing packet encoding functions for exchanging data with a remote host.