15 #ifdef USE_BINARY_SENSOR 25 #include "IPAddress.h" 40 #ifdef USE_BINARY_SENSOR 50 void setup()
override;
55 void configure(
const char *host, uint16_t port,
const char *prefix) {
58 this->prefix_ = prefix;
65 #ifdef USE_BINARY_SENSOR 74 std::vector<sensors_t> sensors_;
79 std::unique_ptr<esphome::socket::Socket> sock_;
83 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