diff --git a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp index 1f005f9..b3b6272 100644 --- a/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp +++ b/components/ratgdo/binary_sensor/ratgdo_binary_sensor.cpp @@ -10,7 +10,7 @@ namespace ratgdo { void RATGDOBinarySensor::setup() { if (this->binary_sensor_type_ == SensorType::RATGDO_SENSOR_MOTION) - this->publish_state(state == MotionState::MOTION_STATE_CLEAR); + this->publish_state(false); } void RATGDOBinarySensor::dump_config()