14 #ifdef USE_BINARY_SENSOR 24 #include "IPAddress.h" 39 #ifdef USE_BINARY_SENSOR 49 void setup()
override;
54 void configure(
const char *host, uint16_t port,
const char *prefix) {
57 this->prefix_ = prefix;
64 #ifdef USE_BINARY_SENSOR 73 std::vector<sensors_t> sensors_;
78 std::unique_ptr<esphome::socket::Socket> sock_;
82 void send_(std::string *out);
void configure(const char *host, uint16_t port, const char *prefix)
void dump_config() override
struct { const char *name sensors_t
This class simplifies creating components that periodically check a state.
enum { TYPE_SENSOR, TYPE_BINARY_SENSOR } sensor_type_t
void register_binary_sensor(const char *name, esphome::binary_sensor::BinarySensor *binary_sensor)
float get_setup_priority() const override
esphome::binary_sensor::BinarySensor * binary_sensor
Implementation of SPI Controller mode.
Base class for all binary_sensor-type classes.
void register_sensor(const char *name, esphome::sensor::Sensor *sensor)
Base-class for all sensors.
esphome::sensor::Sensor * sensor