ESPHome 2026.5.1
Loading...
Searching...
No Matches
tuya_binary_sensor.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::tuya {
8
10 public:
11 void setup() override;
12 void dump_config() override;
13 void set_sensor_id(uint8_t sensor_id) { this->sensor_id_ = sensor_id; }
14
15 void set_tuya_parent(Tuya *parent) { this->parent_ = parent; }
16
17 protected:
19 uint8_t sensor_id_{0};
20};
21
22} // namespace esphome::tuya
Base class for all binary_sensor-type classes.
void set_sensor_id(uint8_t sensor_id)