7 static const char *
const TAG =
"copy.sensor";
void add_on_state_callback(std::function< void(float)> &&callback)
Add a callback that will be called every time a filtered value arrives.
float state
This member variable stores the last state that has passed through all filters.
void publish_state(float state)
Publish a new state to the front-end.
void dump_config() override
This is a workaround until we can figure out a way to get the tflite-micro idf component code availab...
bool has_state() const
Return whether this sensor has gotten a full state (that passed through all filters) yet...