mirror of
https://github.com/ratgdo/esphome-ratgdo.git
synced 2025-02-09 01:04:30 +00:00
binary sensor
This commit is contained in:
parent
9f75f8cf58
commit
6ddaff2253
@ -9,8 +9,7 @@ static const char *const TAG = "ratgdo.binary_sensor";
|
|||||||
|
|
||||||
void RATGDOBinarySensor::dump_config() {
|
void RATGDOBinarySensor::dump_config() {
|
||||||
LOG_BINARY_SENSOR("", "RATGDO BinarySensor", this);
|
LOG_BINARY_SENSOR("", "RATGDO BinarySensor", this);
|
||||||
ESP_LOGCONFIG(" Type: %s", this->type_);
|
ESP_LOGCONFIG(TAG, " Type: %s", this->type_ == SensorType::RATGDO_SENSOR_MOTION ? "Motion" : "Obstruction");
|
||||||
|
|
||||||
}
|
}
|
||||||
void RATGDOBinarySensor::on_motion_state(esphome::ratgdo::MotionState state) {
|
void RATGDOBinarySensor::on_motion_state(esphome::ratgdo::MotionState state) {
|
||||||
if (this->type_ == SensorType::RATGDO_SENSOR_MOTION)
|
if (this->type_ == SensorType::RATGDO_SENSOR_MOTION)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user