This class simplifies creating components that periodically check a state.
Base-class for all sensors.
void publish_state(float state)
Publish a new state to the front-end.
void dump_config() override
float get_setup_priority() const override
std::string unique_id() override
const float AFTER_WIFI
For components that should be initialized after WiFi is connected.
WiFiComponent * global_wifi_component
Providing packet encoding functions for exchanging data with a remote host.
std::string get_mac_address()
Get the device MAC address as a string, in lowercase hex notation.