10 ESP_LOGV(TAG,
"MCU reported binary sensor %u is: %s", datapoint.
id, ONOFF(datapoint.
value_bool));
17 "Tuya Binary Sensor:\n"
18 " Binary Sensor has datapoint ID %u",
void publish_state(bool new_state)
Publish a new state to the front-end.
void dump_config() override
void register_listener(uint8_t datapoint_id, F &&func)
ESPHOME_LOG_TAG(TAG, "cover")