7 static const char *
const TAG =
"gpio.binary_sensor";
15 LOG_BINARY_SENSOR(
"",
"GPIO Binary Sensor",
this);
16 LOG_PIN(
" Pin: ", this->
pin_);
void publish_initial_state(bool state)
Publish the initial state, this will not make the callback manager send callbacks and is meant only f...
float get_setup_priority() const override
Hardware priority.
void dump_config() override
void loop() override
Check sensor.
void publish_state(bool state)
Publish a new state to the front-end.
virtual bool digital_read()=0
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
void setup() override
Setup pin.
Implementation of SPI Controller mode.