7static const char *
const TAG =
"copy.sensor";
void dump_config() override
void publish_state(float state)
Publish a new state to the front-end.
void add_on_state_callback(std::function< void(float)> &&callback)
Add a callback that will be called every time a filtered value arrives.
bool has_state() const
Return whether this sensor has gotten a full state (that passed through all filters) yet.
float state
This member variable stores the last state that has passed through all filters.
Providing packet encoding functions for exchanging data with a remote host.