ESPHome 2025.5.0
Loading...
Searching...
No Matches
tuya_binary_sensor.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome {
8namespace tuya {
9
11 public:
12 void setup() override;
13 void dump_config() override;
14 void set_sensor_id(uint8_t sensor_id) { this->sensor_id_ = sensor_id; }
15
16 void set_tuya_parent(Tuya *parent) { this->parent_ = parent; }
17
18 protected:
20 uint8_t sensor_id_{0};
21};
22
23} // namespace tuya
24} // namespace esphome
Base class for all binary_sensor-type classes.
void set_sensor_id(uint8_t sensor_id)
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7