bool is_connected() const
APIServer * global_api_server
bool remote_is_connected()
Return whether the node has any form of "remote" connection via the API or to an MQTT broker.
ESPHOME_ALWAYS_INLINE bool api_is_connected()
Return whether the node has at least one client connected to the native API.
bool mqtt_is_connected()
Return whether the node has an active connection to an MQTT broker.