7 static const char *
const TAG =
"tuya.binary_sensor";
11 ESP_LOGV(TAG,
"MCU reported binary sensor %u is: %s", datapoint.
id, ONOFF(datapoint.
value_bool));
17 ESP_LOGCONFIG(TAG,
"Tuya Binary Sensor:");
18 ESP_LOGCONFIG(TAG,
" Binary Sensor has datapoint ID %u", this->
sensor_id_);
void register_listener(uint8_t datapoint_id, const std::function< void(TuyaDatapoint)> &func)
void dump_config() override
void publish_state(bool state)
Publish a new state to the front-end.
Implementation of SPI Controller mode.